gpt4 book ai didi

github - 如何结束在同一存储库中运行的 'another git process'?

转载 作者:行者123 更新时间:2023-12-04 17:48:46 27 4
gpt4 key购买 nike

在我第一次尝试提交几个大文件夹(angular 和 django)后,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 文件夹中的 index.lock。

我已经这样做了,但是当我重新提交“git add.”作为我的 git push origin 主例程的一部分时,index.lock 文件重新出现在 .git 中

还有其他解决方案吗?发生了什么事证明了这一点?

我已经尝试了评论链接中的所有建议

我正在处理这个:

 git version 2.13.5 (Apple Git-94)

最佳答案

在我的例子中,index.lock 不会删除。相反,我发现我的一个 django 文件夹缺少 .gitignore,所以我创建了一个并包含了以下文件:

include
lib
include
bin
.vscode

您可能想要包含更多或更少,具体取决于...显然,我试图推送一个与 git 不一致的文件。

关于github - 如何结束在同一存储库中运行的 'another git process'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46781089/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com