Installing Git on OSX and Sharing a Repository

1. Download Git from the OSX link:
http://git-scm.com/download

That will take you to this Google Code project:
http://code.google.com/p/git-osx-installer/downloads/list?can=3

2. Run the Installer.

3. In order to allow someone to clone your repository, you need to make sure that git is part of the system PATH.
Create or Edit a file called ~/.bashrc

Add the following:
export PATH=$PATH:/usr/local/git/bin

Now verify that the path is accessable to a no-login shell:
ssh localhost echo \$PATH

You should see something like this (Just make sure /usr/local/git/bin is in it)
user$ ssh localhost echo \$PATH
Password:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin

Now go about cloning the repostory in the traditional way:
git clone ssh://maccomputername/path/to/repo

One last thing to mention, if you want to share this repository with other people other than yourself, you will need to change the folder permissions to group as I explained in a previous blog:

http://www.scottmurphy.info/git-ssh-install-build-share-linux