Can I install/use git on OS X Yosemite without CLDT?

Solution 1:

Yes. Instead of using the built-in git command:

  • Install Homebrew if you haven't already:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • Run brew update && brew install git

  • Restart Terminal (or close the current tab and open a new one)


Before you do this:

$ git --version
git version 1.9.3 (Apple Git-50)

After you do this:

$ git --version
git version 2.2.1

Solution 2:

How about using SourceTree.app?

http://www.sourcetreeapp.com/

SourceTree.app has also git binary.

$ SourceTree.app/Contents/Resources/git_local/bin/git --version
git version 2.2.1

EDIT

he has github for mac installed and git, but it shows this message anyway :(

I guess he didn't set PATH env, so that git was /usr/bin/git. He should use /Applications/GitHub.app/Contents/Resources/git/bin/git instead of git, or set PATH env.