diff --git a/doc/git-annex-unlock.mdwn b/doc/git-annex-unlock.mdwn index b410c880bf..9b5051fb55 100644 --- a/doc/git-annex-unlock.mdwn +++ b/doc/git-annex-unlock.mdwn @@ -39,6 +39,7 @@ repository. So, enable annex.thin with care. # git annex unlock photo.jpg # gimp photo.jpg + # git annex add photo.jpg # git annex lock photo.jpg # git commit -m "redeye removal" diff --git a/doc/git-annex-unlock/comment_6_7ab5b674d0fc18da262e6c0264953e21._comment b/doc/git-annex-unlock/comment_6_7ab5b674d0fc18da262e6c0264953e21._comment new file mode 100644 index 0000000000..ec3e10f15c --- /dev/null +++ b/doc/git-annex-unlock/comment_6_7ab5b674d0fc18da262e6c0264953e21._comment @@ -0,0 +1,9 @@ +[[!comment format=mdwn + username="joey" + subject="""re: issue with example""" + date="2021-03-01T17:07:06Z" + content=""" +`git-annex lock` wouldn't erase any modifications, but it would fail +due to the file being modified. Fixed the example to use `git-annex add` +before locking. +"""]]