aboutsummaryrefslogtreecommitdiff
path: root/doc/tips/How_to_retroactively_annex_a_file_already_in_a_git_repo/comment_6_1eceb980814f95b28caac9d4d9894f01._comment
blob: 17592b2870f99f6c0de2abffe77bec5f972f3c40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[[!comment format=mdwn
 username="Dilyin"
 subject="Retroactively annex"
 date="2016-06-01T18:36:40Z"
 content="""
Hmm, guyz? Are you serious with these scripts?

1. git rm -r --cached large_files
# files are indexed as both removed and untracked and are still in place
2. commit the changes
# files are seen as untracked
3. git annex add large_files
# files are replaced with symlinks and are in the index
4. commit changes again

Make sure that you don't have annex.largefiles settings that would prevent annexing the files.
"""]]