1
error: insufficient permission for adding an object to repository database .git/objects
error: xx.go: failed to insert into database
error: unable to index file xx.go
fatal: updating files failed
git报错
insufficient permission for adding an object to repository database
是因为项目的 .git 目录有些文件夹的权限是root用户,
解决办法,切换到root超级管理员,修改文件所属用户为当前电脑用户
chown -R xxxx: .git
网友评论