GIT from command line (Xcode Installed)

Uncategorized Add comments

If you’ve installed a reasonably recent version of Xcode on your mac then it will have git repository features included but by default you will not be able to use the git from the terminal (command line).

Xcode will place git here:


To be able to use git from the command line then you need to add this directory to your PATH variable.
You will need to open the terminal and edit your bash profile (or whatever shell you’re using’s profile).

Add the following statement to your .bash_profile and save it…

export PATH=”/Applications/”:$PATH

You will need to open a new tab in the terminal or quit and re-open the terminal in order for the change to take effect. Alternatively you can use the following command…

user $ source ./bash_profile

Now you will be able to use git commands in any terminal window.

Credit where credit is due this information was adapted from git-from-command-line-after-installing-xcode-on-os-x-lion.

Leave a Reply

WP Theme & Icons by N.Design Studio | Akismet has gobbled 348,921 spam comments...Mmmm Tasty :-)
Entries RSS Comments RSS Log in