Command Line Tools bash (git) not working - macOS Sierra final release candidate

Sanket Prabhu picture Sanket Prabhu · Sep 14, 2016 · Viewed 30.5k times · Source

I have just upgraded from OS X 10.11 "El Capitan" to 10.12: "Sierra", and when I try to access git commands inside a terminal, I get the following error:

xcrun: error: invalid active developer path

(/Library/Developer/CommandLineTools), missing xcrun at:

/Library/Developer/CommandLineTools/usr/bin/xcrun

Please help me if anyone have solution.

Answer

Parag Bafna picture Parag Bafna · Sep 19, 2016

Re-install Xcode developer tools

xcode-select --install