summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web>2013-09-10 18:13:57 +0000
committerGravatar admin <admin@branchable.com>2013-09-10 18:13:57 +0000
commit0d6627ad49d8020dc3532e497b5b37716c471ccc (patch)
tree7645bf38a7d81f3250f0d744f457dd09fd83f520
parent4471638a0433874b1be004e166f1ca55cd828f44 (diff)
mention import
-rw-r--r--doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn b/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn
index 3d7e9dac4..fd8eb6151 100644
--- a/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn
+++ b/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn
@@ -17,7 +17,8 @@ Start with `marcos`, with the complete directory:
cd /srv/mp3
git init
git annex init
- git annex add
+ git annex add .
+ git commit -m"git annex yay"
You may want to use [[direct mode]] if you want to avoid creating a forest of symlinks there, but this is generally error-prone and should be avoided.
@@ -51,3 +52,11 @@ Once you are sure things went on okay, you can synchronise this with `marcos`:
git annex sync
This will push the metadata information to marcos, so it knows which files are available on `angela`. From there on, you can freely get and move files between the two repos!
+
+Importing files from a third directory
+--------------------------------------
+
+Say that some files on `angela` are actually spread out outside of the `~/mp3` directory. You can use the `git annex import` command to add those extra directories:
+
+ cd ~/mp3
+ git annex import ~/music/