summaryrefslogtreecommitdiff
path: root/doc/bugs/No_easy_way_to_re-inject_a_file_into_an_annex/comment_3_be62be5fe819acc0cb8b878802decd46._comment
blob: 9c56452e53cb5bdaf1fde6dc86833de1f5f73a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[[!comment format=mdwn
 username="http://joey.kitenet.net/"
 nickname="joey"
 subject="comment 3"
 date="2011-05-14T16:28:36Z"
 content="""
To re-inject new content for a file, you really want to get a new key for the file. Otherwise, other repos that have the old file will never get the new content. So:

<pre>
git rm file
mv ~/newcontent file
git annex add file
</pre>
"""]]