Is there a way in #git to prevent a file being added to the repo, but without listing it in `.gitignore`?
Currently I'm just adding all files each commit except one particular one, but it's tedious and I have to remember not to just do `git add .`
Is there a way in #git to prevent a file being added to the repo, but without listing it in `.gitignore`?
Currently I'm just adding all files each commit except one particular one, but it's tedious and I have to remember not to just do `git add .`
Ah, I can use the `.git/info/exclude` file:
https://gourav.io/blog/exclude-files-from-git#approach-1-using-gitinfoexclude-file