DevCamp/Laptop setup/OSX git
< DevCamp | Laptop setup
Quick links:
The install depends on your version of Mac OS
For Mac OS Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8):
- Install this DMG: http://git-osx-installer.googlecode.com/files/git-1.7.11.1-intel-universal-snow-leopard.dmg
For other versions of Mac OS:
- Go through this long list of options and pick the one best-suited to your computer. If you're not sure, ask an instructor.
Configure git: name and email address
The final step for configuring git is to tell git your name and email address. To do that, open a Terminal as discussed earlier.
In the Terminal, type this command to set your name (replacing Mister Roboto with your name):
git config --global user.name "Mister Roboto"
In the same Terminal, type this command to set your email address. Git stores your name and email address whenever you commit changes to the git repository. (Be sure to replace myself@example.com with whichever email address you use!)
git config --global user.email myself@example.com
One more thing: let's enable color, just to make your life easier.
git config --global color.ui true
Okay, that's it!