mac M1安装SVN错误Error: Command failed with exit 128: git

命令:

brew install subversion

打印:

==> Installing dependencies for subversion: apr, ca-certificates, [email protected], apr-util, gettext, lz4 and utf8proc

==> Installing subversion dependency: apr

fatal: not in a git directory

Error: Command failed with exit 128: git

执行以下命令:

unset HOMEBREW_BOTTLE_DOMAIN

2022年6月22日新增:

又遇到这个问题,结合大佬经验执行以下命令,问题得以解决,一直没有做记录,今日做下记录。

(留言区的热心网友也给出了解决办法。)

报错:

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

执行brew -v,可以看到fatal: unsafe repository 。。。设置safe.directory路径

执行:

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask

完美解决~

你可能感兴趣的:(macos,svn,intellij,idea)