VS 2017 Git Local Commit DB.lock error on every commit
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:
- On the Team Explorer's window, go to Settings.
- Then access Repository Settings.
- Finally, click Add in the Ignore File section.
Done. ;)
This default file already includes the .vs folder.
- .vs folder should not be committed.
- create a file with name ".gitignore" inside the projects git root directory.
- Add the following line ".vs/" in ".gitignore" file.
- Now commit your project.