VS 2017 Git Local Commit DB.lock error on every commit

后端 未结 15 1223
小鲜肉
小鲜肉 2020-12-12 10:35

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

15条回答
  •  悲哀的现实
    2020-12-12 10:40

    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:

    1. On the Team Explorer's window, go to Settings.

    1. Then access Repository Settings.

    1. Finally, click Add in the Ignore File section.

    Done. ;)
    This default file already includes the .vs folder.

提交回复
热议问题