Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied

后端 未结 6 813
野性不改
野性不改 2020-12-22 20:28

I am having a strange issue that I can\'t seem to resolve. Here is what happend:

I had some log files in a github repository that I didn\'t want there. I found this

6条回答
  •  甜味超标
    2020-12-22 21:21

    Let's concentrate on what it's complaining about exactly:

    Permission denied error: Cannot update the ref 'refs/remotes/origin/master'.

    Before doing recursive mod/ownership changes, traverse your way to that file and fix any permissions that are incorrect.

    I think I caused this issue by creating a branch while I was root and then trying to mess with that branch as my user.

提交回复
热议问题