From fa7e3940bc9ad2f2a3ab0f1650bc1b745d23b72e Mon Sep 17 00:00:00 2001 From: Dilyin Date: Wed, 1 Jun 2016 18:36:40 +0000 Subject: Added a comment: Retroactively annex --- .../comment_6_1eceb980814f95b28caac9d4d9894f01._comment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/tips/How_to_retroactively_annex_a_file_already_in_a_git_repo/comment_6_1eceb980814f95b28caac9d4d9894f01._comment (limited to 'doc/tips/How_to_retroactively_annex_a_file_already_in_a_git_repo/comment_6_1eceb980814f95b28caac9d4d9894f01._comment') diff --git a/doc/tips/How_to_retroactively_annex_a_file_already_in_a_git_repo/comment_6_1eceb980814f95b28caac9d4d9894f01._comment b/doc/tips/How_to_retroactively_annex_a_file_already_in_a_git_repo/comment_6_1eceb980814f95b28caac9d4d9894f01._comment new file mode 100644 index 000000000..17592b287 --- /dev/null +++ b/doc/tips/How_to_retroactively_annex_a_file_already_in_a_git_repo/comment_6_1eceb980814f95b28caac9d4d9894f01._comment @@ -0,0 +1,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. +"""]] -- cgit v1.2.3