问题描述:
Git 提交(commit 或 discard, remove等)时,报错,显示错误如:
fatal: Unable to create 'XXXXXX/.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.
解决办法:
找到index.lock 删除即可
本文提供了解决Git提交时因index.lock文件导致的冲突问题的方法,通过手动删除该文件来继续进行操作。适用于遇到类似错误提示时的解决策略。
598





