update for direct mode guard
This commit is contained in:
parent
ddf810a4fb
commit
e3fa0ebd03
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue