summaryrefslogtreecommitdiff
path: root/doc/tips
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tips')
-rw-r--r--doc/tips/replacing_Sparkleshare_or_dvcs-autosync_with_the_assistant.mdwn12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/tips/replacing_Sparkleshare_or_dvcs-autosync_with_the_assistant.mdwn b/doc/tips/replacing_Sparkleshare_or_dvcs-autosync_with_the_assistant.mdwn
index 4363dc85d..893408c2f 100644
--- a/doc/tips/replacing_Sparkleshare_or_dvcs-autosync_with_the_assistant.mdwn
+++ b/doc/tips/replacing_Sparkleshare_or_dvcs-autosync_with_the_assistant.mdwn
@@ -24,10 +24,20 @@ file that is stored in the annex.
git config annex.largefiles "largerthan=100kb and not (include=*.c or include=*.h)"
+----
+
Now if you run `git annex add`, it will only add the large files to the
annex. You can `git add` the small files directly to git.
-Better, if you run `git annex assistant`, it will *automatically*
+Note that in order to use `git add` on the small files, your repository
+needs to be in indirect mode, rather than [[direct mode]]. If it's in
+direct mode, `git add` will fail. You can fix that:
+
+ git annex indirect
+
+----
+
+A less manual option is to run `git annex assistant`. It will *automatically*
add the large files to the annex, and store the small files in git.
It'll notice every time you modify a file, and immediately commit it,
too. And sync it out to other repositories you configure using `git annex