Git on Mac

secondplanet edited this page Feb 26, 2011 · 7 revisions

Having Git installed on your system will make it simpler to download, install and manage Radiant extensions.

Using Macports

If you have Macports installed, you can use it to install Git from the Terminal, like so…

[sudo] port install git-core

For information on installing Macports refer to their documentation.

Using Homebrew

If you have Homebrew installed, you can use it to install Git from the Terminal, like so…

brew install git

For information on installing Homebrew refer to their documentation.

Using the Finder

You can download Git as a .pkg file to install using Mac OS X’s Installer.

  1. Download the latest version
  2. Double click the downloaded .dmg file
  3. Double click the .pkg file
  4. Follow the instructions from the installer
  5. Ensure everything succeeded
    1. Open the Terminal application from Applications / Utilities
    2. Run: git --version

If you don’t see something like git version 1.6.2 something went wrong, most likely you don’t have the install directory in your PATH. To find out if this is the case run:

export PATH=“/usr/local/git/bin:$PATH” git —version

If you now see a version number as expected your shell’s PATH is the problem. Run echo $SHELL and then refer to Google for the details of your shell (for example “add path bash”).

GitX

Additionally you may want to install GitX which adds a very nice GUI on top of the Git tools.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.