summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar http://peter-simons.myopenid.com/ <http://peter-simons.myopenid.com/@web>2012-02-09 18:31:03 +0000
committerGravatar admin <admin@branchable.com>2012-02-09 18:31:03 +0000
commitdf3be7308093f33fa96c7d0c8d4f03d0499b7e17 (patch)
tree5332aa9b9228e45e72546c9a2483ad94bc7a9261 /doc
parent1c0bd81ba6aa6bd081042c81fcb6dca21ece0eec (diff)
How to expire old versions of files that have been edited?
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/How_to_expire_old_versions_of_files_that_have_been_edited__63__.mdwn7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/forum/How_to_expire_old_versions_of_files_that_have_been_edited__63__.mdwn b/doc/forum/How_to_expire_old_versions_of_files_that_have_been_edited__63__.mdwn
new file mode 100644
index 000000000..f06135c24
--- /dev/null
+++ b/doc/forum/How_to_expire_old_versions_of_files_that_have_been_edited__63__.mdwn
@@ -0,0 +1,7 @@
+My annex contains several large files that I have unlocked, edited, and committed again, i.e. the annex contains the version history of those files. However, I don't want the history -- keeping the latest version is good enough for me. Running `git annex unused` won't detect those old versions, though, because they aren't unused as old Git revisions still refer to them. So I wonder:
+
+1. What is the best way to get rid of the old versions of files in the annex?
+
+2. What is the best way to detect old versions of files in the annex?
+
+I guess, I could run `git rebase -i` to squash commits to those files into one commit, thereby getting rid of the references to the old copies, but that approach feels awkward and error prone. Is anyone aware of a better way?