gpt4 book ai didi

git gc 命令反复询问 Unlink of file '.git/objects/pack/pack-.pack' failed.我应该再试一次吗? , 为什么 ?以及如何跳过输入 Y/N

转载 作者:行者123 更新时间:2023-12-03 23:39:30 27 4
gpt4 key购买 nike

我在运行

git gc --prune=now
并得到结果
Counting objects: 100% (619263/619263), done.
Delta compression using up to 8 threads
Compressing objects: 100% (132698/132698), done.
Writing objects: 100% (619263/619263), done.
Total 619263 (delta 316177), reused 608671 (delta 305796)
Unlink of file '.git/objects/pack/pack-15e469b10c92d51ece59ad7c055fc1ac64ff3056.pack' failed. Should I try again? (y/n) y
Unlink of file '.git/objects/pack/pack-15e469b10c92d51ece59ad7c055fc1ac64ff3056.pack' failed. Should I try again? (y/n) n
Unlink of file '.git/objects/pack/pack-4b025e2c952e34cf7b721520909ab216f6223fb3.pack' failed. Should I try again? (y/n)
为什么是这样 ?和
如何避免与要求我输入 y/n 的命令交互?

最佳答案

如果这是在 Windows 上,请确保使用 latest Git For Windows git gc was recently optimize to avoid that error .
如果没有,请仔细检查是否存在 no current process which could keep a handle到那些 Git 文件(如我 illustrated here )。例如,在重新启动后立即尝试相同的命令。

关于git gc 命令反复询问 Unlink of file '.git/objects/pack/pack-.pack' failed.我应该再试一次吗? , 为什么 ?以及如何跳过输入 Y/N,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66593964/

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