随手记:git无法拉代码提交代码,报错Another git process seems to be running in this repository, e.g. an editor opened

git报错:
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进程似乎正在这个存储库中运行,例如,一个由“git commit”打开的编辑器。请确保所有进程都已终止,然后再试一次。如果它仍然失败,则git进程可能已经在此存储库中崩溃:手动删除该文件以继续。
 


**(每个人报错提示的路劲不一致,请查看自己的git弹窗报错指引的路径)

git的意思大概是,你目前无法操作进程,因为还有一个进程没有结束,但是它已经被锁住了,所以你需要操作删掉LOCK的文件,后续才可以继续操作。在提示的窗口会提示lock的路径(入上图所示)
 

解决方法:
方法1.文件夹工作区打开隐藏的项目可以看到.git文件夹,点击进去,按照上图你的git提示的路径找到文件类型为LOCK的文件类型,然后删除即可


 

方法2:
直接执行命令:

rm -f .git/index.lock


rm -f .git/你git弹窗提示的文件


然后重新操作git流程即可!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

peachSoda7

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值