How can I access the 'GitHub for Mac' command-line utility from the terminal?

Check12 picture Check12 · Oct 27, 2012 · Viewed 9.1k times · Source

I recently installed GitHub for Mac, the graphical Git client from GitHub, and also the command-line utility from its menu, shown below:

GitHub for Mac menu

I was notified the command-line utility had been installed in /usr/local/github, but when I checked it had actually been put in /usr/local/bin/github - details shown below:

Terminal results

When I try to run git I get -bash: git: command not found, so I added export PATH=/usr/local/bin:$PATH to ~/.profile thinking it would solve the issue, but it hasn't - all that seems to be different is I can now start GitHub for Mac from the terminal by typing github.

Please could someone with more knowledge explain what's happening here?

Answer

Stefan picture Stefan · Oct 27, 2012

The "GitHub for Mac" command-line utility is just a tool for launching "GitHub for Mac" in the current directory.

To install the git command line tool use either Homebrew (brew install git) or the Git for OS X installer.