diff options
author | Joey Hess <joey@kitenet.net> | 2012-05-31 19:47:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-05-31 19:47:18 -0400 |
commit | 3a10095d40cf9a9e0380b6b10e1ebe304f1537c0 (patch) | |
tree | a4dd1413473cddc7e7d5aff9ce1442b35347ed4e /doc | |
parent | 3b09281b442e794213f2e296e42e2d74fddec733 (diff) |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/git-annex.mdwn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index 5d41f86e9..c7de59cd2 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -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] |