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

后端 未结 15 1197
小鲜肉
小鲜肉 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 11:02

    I had the same issue but I've resolved by creating the .gitignore file.

    I've also found a workaround that simply consists on removing db.lock file from the .vs folder but you have to do it every single time and doing this for long makes this an annoying operation.

    The best way to solve this issue is to create the .gitignore file as suggested before, but I think that is good to mention also this workaround, just to general knowledge purpose!

    Regards, Tony Grinton

    0 讨论(0)
  • 2020-12-12 11:02

    For me these two files I have deleted by mistake, after undo these two files and get added in my changes, I was able to commit my changes to git.

    0 讨论(0)
  • 2020-12-12 11:03

    if you are using an IDE like visual studio and it is open while you sending commands close IDE and try again

    git add .
    

    and other commands, it will workout

    0 讨论(0)
提交回复
热议问题