情况一
jizhiyuan:~/code/tanggang/vendor/huawei$ git add .
fatal: Unable to create '/home/jizhiyuan/code/vendor/huawei/.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时遇到'.git/index.lock'文件冲突的解决方法,强调了手动删除该文件以继续操作,并提供了解决类似问题的背景和常见原因。
1万+

被折叠的 条评论
为什么被折叠?



