Fix Git xcrun: error: active developer path (...) does not exist on macOS

git_issues_mac

Just a quick reminder. I Recently deleted XCode for getting some free space disk (30Gb!), and suddenly I get the message above. brew install git did not the trick. I use Git a lot, don't fuck me, Apple. All posts around the web say I must to install XCode. I don't want to do it. You only need the command line tools. So finally I found the command that saves my day:


sudo xcode-select -s /Library/Developer/CommandLineTools


I request your permission to obtain statistical data on its navigation on this website. If you continue to browse I consider you accept the use of cookies. This site is adapted to be compliant with the new law about General Data Protection Regulation. OK | More Information