summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar http://adamspiers.myopenid.com/ <Adam@web>2012-03-29 21:41:55 +0000
committerGravatar admin <admin@branchable.com>2012-03-29 21:41:55 +0000
commite418cc92f47a22f70125ea28b3d6509ebd52dc1a (patch)
treea5fb8b5300b11c692d3e14cc5e54b40a3d52e318
parentae1734e7e847f3434b85c224fcdc57c677bf030b (diff)
Added a comment: re-annexing previously annexed files
-rw-r--r--doc/forum/syncing_non-git_trees_with_git-annex/comment_3_6d8f399f0549eddd1d1f5c9c9a10c654._comment13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/forum/syncing_non-git_trees_with_git-annex/comment_3_6d8f399f0549eddd1d1f5c9c9a10c654._comment b/doc/forum/syncing_non-git_trees_with_git-annex/comment_3_6d8f399f0549eddd1d1f5c9c9a10c654._comment
new file mode 100644
index 000000000..1793e686f
--- /dev/null
+++ b/doc/forum/syncing_non-git_trees_with_git-annex/comment_3_6d8f399f0549eddd1d1f5c9c9a10c654._comment
@@ -0,0 +1,13 @@
+[[!comment format=mdwn
+ username="http://adamspiers.myopenid.com/"
+ nickname="Adam"
+ subject="re-annexing previously annexed files"
+ date="2012-03-29T21:41:54Z"
+ content="""
+Here's another handy command-line which annexes all files in repo B which have already been annexed in repo A:
+
+ git status --porcelain | sed -n '/^ T /{s///;p}' | xargs git annex add
+
+The 'T' outputted by git status for these files indicates a type change: it's a symlink to the annex in repo A, but a normal file in repo B.
+
+"""]]