git-annex/doc/walkthrough/adding_files.mdwn

13 lines
384 B
Text
Raw Normal View History

2019-03-27 15:15:03 +00:00
$ cd ~/annex
$ cp /tmp/big_file .
$ cp /tmp/debian.iso .
$ git annex add .
add big_file (checksum...) ok
add debian.iso (checksum...) ok
2019-03-27 15:15:03 +00:00
$ git commit -a -m added
When you add a file to the annex and commit it, only a symlink to
2014-02-10 15:59:23 +00:00
the content is committed to git. The content itself is stored in
git-annex's backend, `.git/annex/` (or in [[direct_mode]] the file
is left as-is).