git not working after mac upgrade The problem is that Xcode Command-line Tools needs to be updated due to OS update. Go back to your terminal and enter: sudo xcode-select --install …