我是靠谱客的博主 笨笨水蜜桃,这篇文章主要介绍git命令出现fatal: Unable to create 'xxx/.git/index:File exists.问题,现在分享给大家,希望可以做个参考。
用git commit命令时,出现
fatal: Unable to create 'xxx/.git/index:File exists.
Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier:remove the file manually to continue.
解决办法
删除在同级目录下 .git 文件中的 index.lock 文件;
或者直接在命令行输入 rm -f .git/index.lock
最后
以上就是笨笨水蜜桃最近收集整理的关于git命令出现fatal: Unable to create 'xxx/.git/index:File exists.问题的全部内容,更多相关git命令出现fatal:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复