File: adding_files.mdwn

package info (click to toggle)
git-annex 5.20141125
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 37,828 kB
  • ctags: 583
  • sloc: haskell: 42,582; sh: 1,080; ansic: 498; makefile: 316; perl: 125
file content (12 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
	# cd ~/annex
	# cp /tmp/big_file .
	# cp /tmp/debian.iso .
	# git annex add .
	add big_file (checksum...) ok
	add debian.iso (checksum...) ok
	# git commit -a -m added

When you add a file to the annex and commit it, only a symlink to
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).