update for direct mode guard

This commit is contained in:
Joey Hess 2013-12-12 14:08:37 -04:00
parent ddf810a4fb
commit e3fa0ebd03

View file

@ -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