今天我在敲完代码快下班时准备提交代码 当执行git add 操作的时候,出现 如下 错误:
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.
网上一阵搜索找到解决方法:
在项目的目录下鼠标右键找到Git Bash ,键入
rm -f ./.git/index.lock 再次提交就OK了
记录一下使用git遇到的一个小问题
最新推荐文章于 2023-05-09 20:20:04 发布