您的位置:首页 > 其它

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

2016-11-02 10:43 471 查看
eg:

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

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

执行rm -f .git/index.lock

删除掉

然后重新commit
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐