git 报错:See “git help gc” for manual housekeeping, Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied

 

See “git help gc” for manual housekeeping——解决办法

 

最近执行git命令的时候,发现下面错误

错误信息如下

Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.

 

解决办法,输入下面两条命令即可,

git fsck

然后

git gc --prune=now

 

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

——解决办法

 

# run this from the root of the git working tree
sudo chown -R "${USER:-$(id -un)}" .

例如:

sudo chown -R  justcode:ikeepstudying .

# 或者
# sudo chown -R  justcode:ikeepstudying  .git

 

 

git 报错:See
git 报错:See “git help gc” for manual housekeeping, Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied

 

 

本文:git 报错:See “git help gc” for manual housekeeping, Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied

Leave a Reply