27

I upgraded to MacOS Sierra today and went to my repo like normal but none of the git commands work, in fact my machine doesn't recognize that I have git installed. help?

I found this article but it seems a little elaborate.

Ethan Parker
  • 2,986
  • 1
  • 23
  • 29
  • 1
    Possible duplicate of [Command Line Tools bash (git) not working - macOS Sierra final release candidate](http://stackoverflow.com/questions/39484218/command-line-tools-bash-git-not-working-macos-sierra-final-release-candidate) – Parag Bafna Sep 23 '16 at 16:21
  • shoot I didn't see that one when I was searching – Ethan Parker Sep 23 '16 at 16:29
  • Also I think this is helpful specifically because it addresses upgrading to Sierra OS. – Ethan Parker Jan 26 '17 at 20:07
  • Possible duplicate of [Command Line Tools not working - OS X El Capitan/macOS Sierra/macOS High Sierra](https://stackoverflow.com/questions/32893412/command-line-tools-not-working-os-x-el-capitan-macos-sierra-macos-high-sierra) – 1615903 Oct 02 '17 at 09:34

1 Answers1

52

All that is a little elaborate, for many cases all you need to do is reinstall xcode developer tools.

Open Terminal or iTerm and Run this:

xcode-select --install
Ethan Parker
  • 2,986
  • 1
  • 23
  • 29