Mac安装 git-lfs 出现 Command failed with exit 128: git

fatal: not in a git directory
Error: Command failed with exit 128: git

brew install git-lfs 的时候,出现上述错误

在这里插入图片描述

解决方案:

执行 brew -v

在这里插入图片描述

按照提示执行 git config --global --add ...

在这里插入图片描述
然后再安装 git-lfs

brew install git-lfs

git lfs install

在这里插入图片描述

参考:https://blog.csdn.net/zhouqiangCHN/article/details/124881952

猜你喜欢

转载自blog.csdn.net/qq_42363032/article/details/127634818