git push, error: insufficient permission for adding an object to repository database .git/objects

来源:互联网 发布:达瓦黑钢凛怎数据 编辑:程序博客网 时间:2024/06/06 20:14

For Ubuntu (or any Linux)

From project root,

cd .git/objectsls -alsudo chown -R yourname:yourgroup *

You can tell what yourname and yourgroup should be by looking at the permissions on the majority of the output from that ls -al command

Note: remember the star at the end of the sudo line

原创粉丝点击