您的位置:首页 > 其它

学习git遇到create to"c:/user/xxx/xxx/xx"错误

2017-11-14 20:15 423 查看
今天学习git的使用,发现输入任何命令都提示

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

If no other git process is currently running, this probably means a

git process crashed in this repository earlier. Make sure no other git

process is running and remove the file manually to continue

于是找到C:/Users/zmysna/mydir/.git/index.lock这个路径

输入

rm -rf C:/Users/zmysna/mydir/.git/index.lock

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