expand
This commit is contained in:
parent
63d3b2a62e
commit
ef74908fe7
1 changed files with 25 additions and 0 deletions
|
@ -30,3 +30,28 @@ With the result that it will hang onto files:
|
||||||
00000000-0000-0000-0000-000000000001 -- web
|
00000000-0000-0000-0000-000000000001 -- web
|
||||||
(Use --force to override this check, or adjust annex.numcopies.)
|
(Use --force to override this check, or adjust annex.numcopies.)
|
||||||
failed
|
failed
|
||||||
|
|
||||||
|
You can also add urls to any file already in the annex:
|
||||||
|
|
||||||
|
# git annex addurl --file my_cool_big_file http://example.com/cool_big_file
|
||||||
|
addurl my_cool_big_file ok
|
||||||
|
# git annex whereis my_cool_big_file
|
||||||
|
whereis my_cool_big_file (2 copies)
|
||||||
|
00000000-0000-0000-0000-000000000001 -- web
|
||||||
|
27a9510c-760a-11e1-b9a0-c731d2b77df9 -- here
|
||||||
|
|
||||||
|
To add a lot of urls at once, just list them all as parameters to
|
||||||
|
`git annex addurl`.
|
||||||
|
|
||||||
|
If you're adding a bunch of related files to a directory, or just don't
|
||||||
|
like the default filenames generated by `addurl`, you can use `--pathdepth`
|
||||||
|
to specify how many parts of the url are put in the filename.
|
||||||
|
A positive number drops that many paths from the beginning, while a negative
|
||||||
|
number takes that many paths from the end.
|
||||||
|
|
||||||
|
# git annex addurl http://example.com/videos/2012/01/video.mpeg
|
||||||
|
addurl example.com_videos_2012_01_video.mpeg (downloading http://example.com/videos/2012/01/video.mpeg)
|
||||||
|
# git annex addurl http://example.com/videos/2012/01/video.mpeg --pathdepth=2
|
||||||
|
addurl 2012_01_video.mpeg (downloading http://example.com/videos/2012/01/video.mpeg)
|
||||||
|
# git annex addurl http://example.com/videos/2012/video.mpeg --pathdepth=-2
|
||||||
|
addurl 01_video.mpeg (downloading http://example.com/videos/2012/01/video.mpeg)
|
||||||
|
|
Loading…
Reference in a new issue