gpt4 book ai didi

git - '杀死 : 9' when using git add *

转载 作者:行者123 更新时间:2023-12-04 14:21:50 24 4
gpt4 key购买 nike

我在使用时出错

git add *

这只是说
Killed: 9

如果我再次输入 git add * 我得到
fatal: Unable to create 
'.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/index.lock 并再次输入 git add * ,我会再次收到被杀死的错误。

我在stackoverflow上检查了其他答案,比如

git add command fails and keeps running

但我不使用任何虚拟环境。

最佳答案

在我的情况下(将 Cocoapods 依赖项文件夹添加到 git 可能相当大),问题是苹果在 macOS Catalina 中的 git。更新 brew install git解决了。
必须启动一个新的终端 session 才能使新版本可用。

关于git - '杀死 : 9' when using git add *,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53755220/

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