Array
University of Oregon

OS X: Git Install Error

If you a Mac users who got the Git install error, here’s what you need to do:

A) Uninstall Git;

B) Install Git version 1.8.3.1.

You can do this on your own, or make an appointment to see me.

(A) Uninstall Git

1. Enter this command at the shell:

which git

The output will likely be:
/usr/local/git/bin/git

If it is, then go to step 2. Otherwise, see me for assistance.

2. Enter this command at the shell. You will be prompted for your Mac password, and there will be no output:

sudo rm -rf /usr/local/git

3. Enter this command at the shell. You will be prompted for your Mac password, and there will be no output:

sudo rm /etc/paths.d/git

4. Enter this command at the shell. You will be prompted for your Mac password, and there will be no output:

sudo rm /etc/manpaths.d/git

5. Now, if you enter this command, Git will not be found:

git –version

(B) Install git version 1.8.3.

1. In Firefox, Open the Git OSX Installer web page at Google Code.

2. Select git-1.8.3.2-intel-universal-snow-leopard.dmg in the left nagivation.

Download the installer, and double-click the .dmg file to run it.

3. Test the install. Enter these commands at the shell:

which git
git –version

4. Configure Git.
Enter the two git config commands shown on p. 12 of our textbook.

5. Create your first repo. Enter this command to move to your Chapter1 directory:
cd ~/Documents/repos/Projects/Chapter1

6. Now follow the directions shown on pp. 12-17, Initializing a Git Repo.

Skip to toolbar