improve conversion example

This commit is contained in:
Joey Hess 2019-10-08 14:16:39 -04:00
parent bfd786b26a
commit 3cc23df35b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 9 additions and 0 deletions

View file

@ -140,6 +140,7 @@ When you have a file that is currently stored in the annex, and you want to
convert that to be stored in git, here's how to accomplish that:
git annex unlock file
git rm --cached file
git -c annex.largefiles=nothing add file
git commit file

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="joey"
subject="""Re: annexed -> normal git does not work if annexed file was unlocked"""
date="2019-10-08T18:14:45Z"
content="""
Touching the file first avoids the problem, or git rm --cached to force
git to re-add it. I've updated the example.
"""]]