Do you need the help of a trusted adviser? We can work together for much less than the cost of an on-site visit. You can start getting the advice you need right now for less than the cost of the flight to visit you.

Start the World's Best Introduction to TDD... free!

How to Install Git

When you attend a course that involves writing code, I ask you to use Git for version control. This allows me to review your code easily in addition to giving you the world’s best undo button.


I recommend installing msysgit, which gives you a special command prompt that allows you to use git without affecting other applications on your system. When you install, accept all the default customisation settings, then start the application Git Bash to see the command prompt.

Mac OS

You might already have git, but if you don’t, then my recommendation depends on your preference.

  • For an installation package, try the Git OS X installer.
  • If you use macports or any other package manager, try installing a package called git.
  • If you don’t already use homebrew to manage packages on Mac OS, then I recommend installing it. Then you only need to do brew install git.


You might already have git, but if you don’t, then try your favorite package manager first, and if that fails, then you can always install from source.

Test your installation

Open your command prompt (or Git Bash on Windows), and try these commands.

    $ mkdir try-git
    $ cd try-git
    $ git init

If these commands work, then your installation succeeded. Now you should follow a tutorial to learn some of the basic commands. You will need to know at least how to add files, remove files, and commit.