【问题标题】:git pull error "insufficient permission for adding an object to repository database .git/objects"git pull 错误“将对象添加到存储库数据库 .git/objects 的权限不足”
【发布时间】:2015-06-30 08:22:59
【问题描述】:

我正在尝试 git pull 但我得到了

**

error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed

**

我尝试了各种方法来更改所有者权限,但没有成功。

 sudo chown -R $USER:$USER "$(git rev-parse --show-toplevel)/.git"

任何建议都会被采纳。谢谢。

【问题讨论】:

标签: git


【解决方案1】:

在检查了很多答案后,我终于通过这个链接'whoami' does not work on mac terminal得到了解决方案

【讨论】:

    猜你喜欢
    • 2021-04-23
    • 2012-07-08
    • 2012-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-15
    • 2010-12-27
    • 2021-09-23
    相关资源
    最近更新 更多