This commit is contained in:
Joey Hess 2023-04-19 12:26:20 -04:00
parent cf85d54a2f
commit d223fa3b0a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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
"""]]