我使用 homebrew 安装 git-lfs
然后我跟随
# Update global git config
$ git lfs install
# Update system git config
$ git lfs install --system
我收到以下错误
WARNING: current user is not root/admin, system install is likely to fail.
WARNING: error running /Library/Developer/CommandLineTools/usr/libexec/git-core/git 'config' '--includes' '--system' '--replace-all' 'filter.lfs.clean' 'git-lfs clean -- %f': 'error: could not lock config file /etc/gitconfig: Permission denied' 'exit status 255'
Run `git lfs install --force` to reset git config.
用于install -- system
命令。
答案1
git lfs install
sudo git lfs install --system
解决权限问题