fix docs
"git -a annex.largefiles=* add" cannot be used.. git does not pass the config along to the smudge filter, sadly.
This commit is contained in:
parent
6b717032c5
commit
a858a331c4
2 changed files with 6 additions and 9 deletions
|
@ -14,11 +14,7 @@ of being symlinks.
|
||||||
|
|
||||||
When adding a file with `git add`, the annex.largefiles config is
|
When adding a file with `git add`, the annex.largefiles config is
|
||||||
consulted to decide if a given file should be added to git as-is,
|
consulted to decide if a given file should be added to git as-is,
|
||||||
or if its content are large enough to need to use git-annex. To force a
|
or if its content are large enough to need to use git-annex.
|
||||||
file that would normally be added to the annex to be added to git as-is,
|
|
||||||
this can be temporarily overridden. For example:
|
|
||||||
|
|
||||||
git -c annex.largefiles='exclude=*' add myfile
|
|
||||||
|
|
||||||
The git configuration to use this command as a filter driver is as follows.
|
The git configuration to use this command as a filter driver is as follows.
|
||||||
This is normally set up for you by git-annex init, so you should
|
This is normally set up for you by git-annex init, so you should
|
||||||
|
|
|
@ -63,10 +63,11 @@ must support symbolic links..)
|
||||||
The behavior of some commands changes in an upgraded repository:
|
The behavior of some commands changes in an upgraded repository:
|
||||||
|
|
||||||
* `git add` will add files to the annex, in unlocked mode, rather than
|
* `git add` will add files to the annex, in unlocked mode, rather than
|
||||||
adding them directly to the git repository. To bypass that and add a file
|
adding them directly to the git repository. To cause some files to be
|
||||||
directly to git, use:
|
added directly to git, you can configure `annex.largefiles`. For
|
||||||
|
example:
|
||||||
|
|
||||||
git -c annex.largefiles='exclude=*' add myfile
|
git config annex.largefiles "largerthan=100kb and not (include=*.c or include=*.h)"
|
||||||
|
|
||||||
* `git annex unlock` and `git annex lock` change how the pointer to
|
* `git annex unlock` and `git annex lock` change how the pointer to
|
||||||
the annexed content is stored in git.
|
the annexed content is stored in git.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue