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

后端 未结 15 1201
小鲜肉
小鲜肉 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条回答
  •  -上瘾入骨i
    2020-12-12 10:40

    1. .vs folder should not be committed.
    2. create a file with name ".gitignore" inside the projects git root directory.
    3. Add the following line ".vs/" in ".gitignore" file.
    4. Now commit your project.

提交回复
热议问题