From d223fa3b0a52512eb1a99f157140975f89f48510 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 19 Apr 2023 12:26:20 -0400 Subject: [PATCH] response --- ..._d3881fe94e3588c90e74c6bb3db2783c._comment | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/forum/Finding_out_why_file_is_not_being_auto-dropped/comment_1_d3881fe94e3588c90e74c6bb3db2783c._comment diff --git a/doc/forum/Finding_out_why_file_is_not_being_auto-dropped/comment_1_d3881fe94e3588c90e74c6bb3db2783c._comment b/doc/forum/Finding_out_why_file_is_not_being_auto-dropped/comment_1_d3881fe94e3588c90e74c6bb3db2783c._comment new file mode 100644 index 0000000000..de6f2f7ebb --- /dev/null +++ b/doc/forum/Finding_out_why_file_is_not_being_auto-dropped/comment_1_d3881fe94e3588c90e74c6bb3db2783c._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2023-04-19T16:21:09Z" + content=""" +`git-annex drop` only operates on files in the current subdirectory +and below, so it won't do anything about a key that is not used by any +file. + +Run `git-annex unused` and then `git-annex drop --unused` to deal +with such keys. + +All it takes to create a key that is not referenced by anything in +the repository is adding it and then never committing the file. +For example: + + git-annex add foo + rm foo + git rm --cached foo +"""]]