Last login: Mon Mar 7 17:35:51 on console
~ brew update
warning: unable to access '/Users/Jason/.config/git/ignore': Permission denied
warning: unable to access '/Users/Jason/.config/git/attributes': Permission denied
Updated Homebrew from 7f8aa6d to d08692f.
==> New Formulae
cucumber-cpp prometheus znapzend
==> Updated Formulae
afl-fuzz gtk+ orc writerperfect
crystal-lang kafka platformio
dependency-check libvirt sslscan
ghq logtalk syncthing
~
我在我的 macbook 上运行 El Capitan,每当我尝试更新 Homebrew 软件时,我都会收到这些警告。我正在寻找有关如何阻止这些警告发生的解决方案。
最佳答案
除非确实需要,否则您不应该使用 root 权限运行 brew
。运行 brew doctor
并检查 /Users/Jason/.config
的权限:
chown -R Jason:staff ~/.config
chmod -R 744 ~/.config
关于更新 Homebrew 软件 OS X 时的 Git 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35855617/