git: error: SDK “macosx” cannot be located

Just updated my machine to Yosemite. I’m getting this error from Git now:

git: error: SDK "macosx" cannot be located

I’m able to run git status with no issue, but anything like git add seems to work, but then throws this error. Command Line Tools are installed, I tried reinstalling Git.

  • How do I merge local modifications with a git stash without an extra commit?
  • Git Rebase - Missing Merge requests while rebasing with master
  • Version control for shell scripts
  • git rebase: “error: cannot stat 'file': Permission denied”
  • Why would I not want a central repository in versioning? SVN vs. Git question
  • Bower: ENOGIT Git is not installed or not in the PATH
  • Git merge conflict since I deleted a file
  • How do I let tell Git to warn me about possibly deleted remote branches
  • Can I modify git-add's **default** hunk size?
  • git branch unkown but checkout works
  • Only fetch a subset of remote git branches or only display a subset of them in gitk
  • Run “git pull --rebase” in interactive mode?
  • One Solution collect form web for “git: error: SDK “macosx” cannot be located”

    Not sure exactly what, but something got out of whack during the upgrade. Uninstall CommandLineTools by typing sudo rm -r /Library/Developer/CommandLineTools then reinstall. I just typed some git command like: git status and let the OS prompt me to install the CommandLineTools. Everything is happy now.

    Git Baby is a git and github fan, let's start git clone.