今天合并代码的时候执行了 git status 出现了下面的执行命令no changes added to commit (use "git add" and/or "git commit -a")执行了 git add 就报下面的错误了 fatal: Unable to create ‘D:/3.0项目和资料/3.0项目/fanuc-部署项目/frame-static/.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 bash下执行
rm -f ./.Git/index.lock
然后正常保存本地提交就行了
原文地址:https://www.cnblogs.com/sweetbullet/p/9889997.html
时间: 2024-10-04 14:54:32