summaryrefslogtreecommitdiff
path: root/doc/forum/syncing_non-git_trees_with_git-annex/comment_3_6d8f399f0549eddd1d1f5c9c9a10c654._comment
blob: 1793e686fac8caa560255df37092dd19d68a6d77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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.

"""]]