我是靠谱客的博主 高高香菇,这篇文章主要介绍使用git add命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法,现在分享给大家,希望可以做个参考。

复制代码
1
2
3
4
5
6
7
8
$ git add . fatal: Unable to create 'D:/Git/ocr/.git/index.lock': 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文件删除 再重新添加

最后

以上就是高高香菇最近收集整理的关于使用git add命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法的全部内容,更多相关使用git内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(53)

评论列表共有 0 条评论

立即
投稿
返回
顶部