M1 Mac troubles
I did some operation with brew that tried updating git, and it broke things with:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Seems like there is a way around it using:
xcode-select --install
which will get the development packages back
The above did not solve the issue.
Had to finally do a remove of git from home-brew
brew uninstall git
You can confirm that it worked by typing
which git
which should not return you a directory containing homebrew
in the path