Git
FAQ
Remote: error: failed to lock refs/heads/…
See https://stackoverflow.com/questions/11228436/failed-to-lock-refs-heads-master
Ignoring files without adding them to .gitignore
To ignore untracked files, you have a file in your git folder called .git/info/exclude. This file is your own gitignore inside your local git folder, which means is not going to be committed or shared with anyone else. You can basically edit this file and stop tracking any (untracked) file.
Source: https://luisdalmolin.dev/blog/ignoring-files-in-git-without-gitignore/