(base) frewen@FreweniMacBookPro ~ brew install tree Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core, skipping update! Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update! ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/tree-2.0.2.monterey.bottle.tar.gz Already downloaded: /Users/frewen/Library/Caches/Homebrew/downloads/5e40b31f97c82e0a9be31e97c9ee810b6d72d4fa18a98cfaf561a317662a0127--tree-2.0.2.monterey.bottle.tar.gz fatal: not in a git directory Error: Command failed with exit 128: git
(base) ✘ frewen@FreweniMacBookPro ~ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Suspicious https://github.com/Homebrew/brew git origin remote found. The current git origin is: https://mirrors.ustc.edu.cn/brew.git
With a non-standard origin, Homebrew won't update properly. You can solve this by setting the origin remote: git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew
Warning: Homebrew/homebrew-cask was not tapped properly! Run: rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" brew tap homebrew/cask
Warning: Homebrew/homebrew-core was not tapped properly! Run: rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" brew tap homebrew/core
Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and which additional flags to use when compiling and linking.
Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew-provided script of the same name. We found the following "config" scripts: /Users/frewen/Library/AFrewenLib/anaconda3/bin/icu-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/krb5-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/freetype-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/xslt-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/libpng16-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/libpng-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/xml2-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/python3.9-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/python3-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/curl-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/ncursesw6-config /Users/frewen/Library/AFrewenLib/anaconda3/bin/pre-commit-validate-config
Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted.