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

后端 未结 6 836
野性不改
野性不改 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:18

    This will change all your .git files and directories recursively (from root to 1000)and give you a full listing of all the changes made in the terminal.

    sudo chown -Rc $UID .git/

提交回复
热议问题