git commit时出现fatal: Unable to create ‘××××.git/index.lock': File exists.

来源:互联网 发布:windows怎么装双系统 编辑:程序博客网 时间:2024/06/05 11:03

eg:

fatal: Unable to create 'C:/Users/ZhangLin/git/.git/index.lock': File exists.

git bash中定位到该目录(我的是git目录)


执行rm -f .git/index.lock

删除掉

然后重新commit

0 0