gpt4 book ai didi

git - 致命的 : failed to read object xxx: Permission denied

转载 作者:行者123 更新时间:2023-12-04 15:55:00 30 4
gpt4 key购买 nike

我正在尝试运行:

git checkout master

我不断得到:致命的:
failed to read object 9466835e6cb608c32ec4bf98b2acfa421fd77d3d: Permission denied

我尝试运行:
chown -R my-user *

没有帮助。有什么建议?

最佳答案

第一次尝试

sudo chmod -R  777 path_to_your_project_folder

如果它不起作用,请尝试以下解决方案。

当 git 历史中留下悬空的 blob 时,有时会尝试这样做。您可以备份 .git 文件夹并运行 fsck。
$ git fsck --full

引用 this回答更多细节

关于git - 致命的 : failed to read object xxx: Permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52110816/

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