aboutsummaryrefslogtreecommitdiff
path: root/doc/tips/deleting_unwanted_files.mdwn
diff options
context:
space:
mode:
authorGravatar http://joeyh.name/ <http://joeyh.name/@web>2014-10-13 22:21:54 +0000
committerGravatar admin <admin@branchable.com>2014-10-13 22:21:54 +0000
commitcbf82dba2135acf4d36888421293a25dee636e1e (patch)
tree13e1ce77ef5b2ae3f896e6a469f47457b119c7e1 /doc/tips/deleting_unwanted_files.mdwn
parent9d41bed7cc6149d1f16055f1378fe3bc15f2aa20 (diff)
Diffstat (limited to 'doc/tips/deleting_unwanted_files.mdwn')
-rw-r--r--doc/tips/deleting_unwanted_files.mdwn5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/tips/deleting_unwanted_files.mdwn b/doc/tips/deleting_unwanted_files.mdwn
index c83b960da..a6e70e303 100644
--- a/doc/tips/deleting_unwanted_files.mdwn
+++ b/doc/tips/deleting_unwanted_files.mdwn
@@ -21,6 +21,10 @@ But, let's say you don't care about that, you only want to keep files that are i
Finally, sometimes you want to remove unused files from a special remote. To accomplish this, pass `--from remotename` to the unused and dropunused commands, and they will act on
files stored in that remote, rather than on the local repository.
+## let the assistant take care of it
+
+If you're using the git-annex assistant, you don't normally need to worry about this. Just delete files however you normally would. The assistant will try to migrate unused file contents away from your local repository and store them in whatever backup repositories you've set up.
+
## delete all the copies method
You have a file. You want that file to immediately vanish from the face of the earth to the best of your abilities.
@@ -28,5 +32,6 @@ You have a file. You want that file to immediately vanish from the face of the e
1. `git annex drop --force file`
2. `git annex whereis file`
3. `git annex drop --force file --from $repo` repeat for each repository listed by the whereis command
+4. `rm file; git annex sync`
Of course, if you have offline backup repositories that contain this file, you'll have to bring them online before you can drop it from them, etc.