added a forum question about replacing a locked file without explicitly unlocking/relocking

This commit is contained in:
Ilya_Shlyakhter 2021-03-18 17:35:22 +00:00 committed by admin
parent 9bde743eae
commit 2cf9ed277d

View file

@ -0,0 +1 @@
If I want to replace a locked file with new content, rather than edit the existing content, is it ok to skip the [[`git-annex-unlock`|git-annex-unlock]]/[[`git-annex-lock`|git-annex-lock]] steps? If I just remove the symlink to the annex, create a new regular file in its place, then [[`git-annex-add`|git-annex-add]] the new file and commit, things seem to work fine. Does this create some inconsistency that can come back to bite me later, or is this supported usage?