我最近遇到了一些奇怪的错误。我安装了 Git,但这是提交更改时我的 shell 输出:
$ git commit -m 'Removing crap'
error: unable to append to .git/logs/refs/heads/master
fatal: cannot update HEAD ref
最佳答案
检查.git/logs/refs/heads/master
的用户和权限
这应该可以修复它,至少在 unix 机器上是这样:
sudo chown -Rc $UID .git/
关于git - "unable to append to .git/logs/refs/heads/master"提交时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10058155/