Setting up GIT on Mac OS X

GIT is version control technology created by Linus Torvalds. Getting GIT configured on your system requires a few steps to set up initially. To install and use GIT with a Mac OSX operating system, first download GIT from

Once you have downloaded the files, run the .dmg file to install GIT on your machine.

Now once GIT is installed, it is a good idea to edit your .bash_profile file to enable you to use it more easily. The .bash_profile file is hidden, so first show your hidden files by using the following command in terminal:

defaults write AppleShowAllFiles YES

This will set finder to show all files. Now you must restart finder by using the following command in Terminal:

killall Finder

Finder should now restart and hidden files will be displayed. Next navigate to your home directory and enter into Terminal the following command:

touch .bash_profile

If you look in your finder, because hidden files are displayed you should now be able to see the .bash_profile file. Open this file in your favourite text editor, and add the following:

export PATH={PATH}:/usr/local/git/bin

Each directory specified in your .bash_profile file is separated with a colon. Save and close the file and head back into Terminal. You should now be able to run GIT from the Terminal by simply entering git as a command.

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditShare on StumbleUponShare on TumblrEmail this to someone

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>