We are getting this error on every local commit:
Git failed with a fatal error.error: open(\".vs/XXXXXX.Dev.Library/v15/Server/sqlite3/db.lock\"): P
I had the same issue but I've resolved by creating the .gitignore file.
I've also found a workaround that simply consists on removing db.lock file from the .vs folder but you have to do it every single time and doing this for long makes this an annoying operation.
The best way to solve this issue is to create the .gitignore file as suggested before, but I think that is good to mention also this workaround, just to general knowledge purpose!
Regards, Tony Grinton
For me these two files I have deleted by mistake, after undo these two files and get added in my changes, I was able to commit my changes to git.
if you are using an IDE like visual studio and it is open while you sending commands close IDE and try again
git add .
and other commands, it will workout