summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar josch@9a7314a25217c684aba3754f3eb9f915b4c8cb39 <josch@web>2016-08-04 06:45:47 +0000
committerGravatar admin <admin@branchable.com>2016-08-04 06:45:47 +0000
commitff777a66b3d2ba3034555c4e83a5f6950aad3a49 (patch)
tree5ea4df8d32ade6720e7610c73e4945c1c72f3092
parent1bfd6e84612079a59ea5a09a16faa8010aaf567a (diff)
-rw-r--r--doc/forum/__34__git_annex_unused__34___doesn__39__t_find_unused_files_after_git_history_was_rewritten.mdwn17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/forum/__34__git_annex_unused__34___doesn__39__t_find_unused_files_after_git_history_was_rewritten.mdwn b/doc/forum/__34__git_annex_unused__34___doesn__39__t_find_unused_files_after_git_history_was_rewritten.mdwn
new file mode 100644
index 000000000..cbf9770c3
--- /dev/null
+++ b/doc/forum/__34__git_annex_unused__34___doesn__39__t_find_unused_files_after_git_history_was_rewritten.mdwn
@@ -0,0 +1,17 @@
+Hi,
+
+I recently cleaned my git history using:
+
+ git filter-branch --tree-filter 'rm -rf personal/Mail' --prune-empty HEAD
+ git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
+ git gc
+
+I then ran:
+
+ git annex unused
+
+But was surprised to find that it didn't report any unused files. Not surprisingly (given that I didn't touch the annex data at all so far), when looking into `.git/annex/objects/` I still find the content of all the files that are now not used anymore.
+
+Is there a way to clean these up besides creating a fresh clone of the repository?
+
+Thanks!