File: getting_file_content.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (12 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
A repository does not always have all annexed file contents available.
When you need the content of a file, you can use "git annex get" to
make it available.

We can use this to copy everything in the laptop's annex to the
USB drive.

	$ cd /media/usb/annex
	$ git annex sync laptop
	$ git annex get .
	get my_cool_big_file (from laptop...) ok
	get iso/debian.iso (from laptop...) ok