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
My automatically generated .gitignore file contained /.vs instead of .vs/. Fixing this typo fixed the problem!
.gitignore
/.vs
.vs/