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!
I had done above solutions , finally this works solved my problem :
Close the visual studio
Run the git bash in the project folder
Write :
git add .
git commit -m "[your comment]"
git push
Just add the .vs folder to the .gitignore file.
Here is the template for Visual Studio from GitHub's collection of .gitignore templates, as an example:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
If you have any trouble adding the .gitignore file, just follow these steps:
Done. ;)
This default file already includes the .vs folder.
dotnet now includes a command for gitignore.
Open cmd.exe from your project folder and type:
dotnet new gitignore
For me steps below helped: