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


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:


Please help me if anyone have solution.

Best Solution

Re-install Xcode developer tools

xcode-select --install
Related Question