summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-10-04 11:30:41 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-10-04 11:30:41 -0400
commit5d91a09bb3b61e0cff3dca1f0f9168803c01ea76 (patch)
tree2db09ee9ae78b7a7ceb7640520e7545e1e04d520
parentb1cdbbd1bbfd263d8b7a23da8b7065f7f44619d4 (diff)
comment
-rw-r--r--doc/forum/Blacklisting_files___40__so_that_they_get_removed_any_time_a_copy_is_found__41__/comment_2_0f2e7cf29ad9d41e0041924e69425050._comment27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/Blacklisting_files___40__so_that_they_get_removed_any_time_a_copy_is_found__41__/comment_2_0f2e7cf29ad9d41e0041924e69425050._comment b/doc/forum/Blacklisting_files___40__so_that_they_get_removed_any_time_a_copy_is_found__41__/comment_2_0f2e7cf29ad9d41e0041924e69425050._comment
new file mode 100644
index 000000000..672ea738d
--- /dev/null
+++ b/doc/forum/Blacklisting_files___40__so_that_they_get_removed_any_time_a_copy_is_found__41__/comment_2_0f2e7cf29ad9d41e0041924e69425050._comment
@@ -0,0 +1,27 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2016-10-04T15:17:49Z"
+ content="""
+The answer to this question depends on how quickly you need to get rid of
+the files, and whether you want git-annex to generally keep the content of
+deleted and old versions of modified files or not.
+
+If you only want git-annex to keep the content of files that are present in
+the current branches and tags, then simply delete a file and commit will
+work. Later using `git annex unused` to finish getting rid of the content
+of deleted files that are not used by any branches/tags.
+
+If you want to keep the full history in general, but drop the content of
+specific files, then you need to use git-annex to drop the content before
+you delete the file. You can use `git annex whereis $file` to see everywhere that
+the content has gotten to, and then `git annex drop $file --from` each location
+(and from the local repository).
+
+If you need to immediately get rid of the content of some file, you can use
+the same procedure to check where it is and drop it from those locations.
+
+You don't need to filter old commits out of branches to use `git annex
+unused`; it only looks at the most recent commit in each branch, so once a
+file has been deleted from all branches it will be identified as unused.
+"""]]