美文网首页
Git: error: insufficient permiss

Git: error: insufficient permiss

作者: MiBoy | 来源:发表于2018-01-18 20:26 被阅读76次

    最近使用git 出现了这个错误error: insufficient permission for adding an object to repository database .git/objects,搜了好多也没治好我的疑难杂症,但是大家可以试试这样,

    cd .git/objects
    sudo chown -R <username>:<group> *

    大家获取不知道username 是什么 group 是什么,那不妨 ls -al 一下,如下图:

    image.png
    上面哪个 mi 就是我的用户名,staff就是我的group

    备注一下这个问题导致的直接原因是我 git add . 命令出错,和'git commit 的时候出错,

    相关文章

      网友评论

          本文标题:Git: error: insufficient permiss

          本文链接:https://www.haomeiwen.com/subject/nsfgoxtx.html