import: New subcommand, pulls files from a directory outside the annex and adds them

Use case for this was developed somewhere on the Transiberian Railroad.
This commit is contained in:
Joey Hess 2012-05-31 19:47:18 -04:00
parent 3b09281b44
commit 3a10095d40
5 changed files with 61 additions and 1 deletions

View file

@ -160,6 +160,15 @@ subdirectories).
alternate locations from which the file can be downloaded. In this mode,
addurl can be used both to add new files, or to add urls to existing files.
* import [path ...]
Moves files from somewhere outside the git working copy, and adds them to
the annex. Individual files to import can be specified.
If a directory is specified, all files in it are imported, and any
subdirectory structure inside it is preserved.
git annex import /media/camera/DCIM/
# REPOSITORY SETUP COMMANDS
* init [description]