Last Updated: 08/16/2010 09:10:00 PM

Installing GIT

Installing GIT


Download MysysGit From :

Accept all the defaults on the install

Installing on Linux

If you want to install Git on Linux via a binary installer, you can generally do so through the basic package-management tool that comes with your distribution. If you’re on Fedora, you can use yum:

$ yum install git-core

Or if you’re on a Debian-based distribution like Ubuntu, try apt-get:

$ apt-get install git-core

Installing on Mac

Two methods: GIT Installer And Git via MacPorts

Git installer

Git via MacPorts (

If you have MacPorts installed, install Git via

$ sudo port install git-core+svn +doc +bash_completion +gitweb

You don’t have to add all the extras, but you’ll probably want to include +svn in case you ever have to use Git with Subversion repositories.

Will the real Slim Shady Please stand up!

Now you need to identify yourself, by supplying your username and email address to GIT.  This information is "immutably baked" into every commit you make. 

  1. Start the GIT bash (in Windows go to start... ALL Programs, GIT, GIT Bash )
  2. At the $ prompt type: git config --global "Slimy Shady"
  3. git config --global

Note: This is a global setting, it applies to every GIT project you commit to. If you need different username and password per project  you need to do the following:

$ cd my_other_repo (example: cd c:\myprojects\project3 )

$ git config "Joe Dough"

$ git config ""

(Thanks to Sean Corfield for pointing the above point out)

This will override your user name and password for this repository and this repository only.

Choose your tools

If you want to change the editing tools, VI is used by default, I change mine to use notepad++ using this command:

  • git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

If you mess up and and want to change back to the default editor run this command:

git config --global --unset core.editor

Check Your settings

Type: $ git config --list

And it should return all the configuration information:

Congrats! You just installed GIT on your machine!