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

执行 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.
error: Unable to create '/Users/zhangsan/go/src/aaa/bbb/.git/logs/refs/remotes/origin/feature/mix_model.lock': File exists.

把被锁住的文件所在文件夹删了即可。

rm -rf /Users/zhangsan/go/src/aaa/bbb/.git/logs/refs/remotes/origin

posted @   Lucky小黄人^_^  阅读(659)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
历史上的今天:
2023-06-03 下载b站视频的在线工具
点击右上角即可分享
微信分享提示