diff --git a/doc/forum/Forget_about_accidentally_added_file__63__/comment_6_1fcfcb5dca366d8fd610c03654e15704._comment b/doc/forum/Forget_about_accidentally_added_file__63__/comment_6_1fcfcb5dca366d8fd610c03654e15704._comment new file mode 100644 index 0000000000..3f3e087e8f --- /dev/null +++ b/doc/forum/Forget_about_accidentally_added_file__63__/comment_6_1fcfcb5dca366d8fd610c03654e15704._comment @@ -0,0 +1,12 @@ +[[!comment format=mdwn + username="Ilya_Shlyakhter" + avatar="http://cdn.libravatar.org/avatar/1647044369aa7747829c38b9dcc84df0" + subject="un-adding annexed files" + date="2021-04-12T14:18:44Z" + content=""" +\"[[`git-annex-dead`|git-annex-dead]] only marks the key as dead and doesn't delete its record from the git-annex branch\" -- true. But, in theory, the presence of the dead key record would not affect you as a user? Or are there so many dead keys that they are slowing down git-annex? + +The usual git way of undoing changes would be to revert to an earlier state of the branch. This doesn't quite work with git-annex, because keys added on a reverted branch are still tracked in the current git-annex branch. I've asked about this in an earlier post (can't find it now), and the upshot was that there is not simple fix for this. + +[[`git-annex-forget --drop-dead`|git-annex-forget]] will \"prune references to repositories that have been marked as dead\"; maybe it can also prune dead keys? +"""]]