File: Unlock_files_when_assistant_is_running__63__.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (13 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
I just started using the assistant on an existing annex. I fire up the assistant like so:

    $ git annex webapp

Everything syncs and looks to be working fine. In another terminal, I then create a new file:

    $ touch testfile.txt

The assistant sees that file, immediately adds it and syncs. Ok. So now I want to edit that file.

    $ git annex unlock testfile.txt

As soon as I unlock the file, the assistant re-adds it to the annex and syncs, preventing me from editing the file. How can I edit files with the assistant running?