執行命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
報錯:
HEAD is now at 8175e404e Merge pull request #7942 from sjackman/bottle_tag
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
解決方案:解除安裝重灌 brew
下載 raw.githubusercontent.com/Homebrew... 並儲存為 uninstall.rb
,再執行 ruby uninstall.rb
本作品採用《CC 協議》,轉載必須註明作者和本文連結