step-by-step install Git on OSX, Ubuntu and Windows

This is an add-on to  part 1 of my DVCS – blogseries. On demand I’ll describe my way how to install Git on OSX, Ubuntu and Windows.

I really hope one day we can do all from inside Eclipse using EGit – but for now it’s good to have Git itself installed😉

Install Git on OSX

This is really easy: go to http://code.google.com/p/git-osx-installer/

Download the Installer for your OSX Version.

I downloaded git-1.6.6.2-intel-leopard.dmg.

Doubleclick the .dmg and you’ll get an Installer Pkg:

Doubleclick on this .pkg and install.

Open the Terminal Application on OSX and type

git --version

you should get:

you’re ready – Git is installed on OSX.

Install Git on Ubuntu

Open the Terminal Application on Ubuntu

then type

sudo apt-get install git-core

an easy installation🙂 type

git --version

you should get:

install Git on Windows

There are some ways how to install Git on Windows – perhaps you’re already using “Cygwin”. There’s also a good tutorial at GitHub: the GitHub tutorial for newbies.

From my POV the easiest way to install Git on Windows is msysGit:

I installed Git-1.6.5.1-preview20091022.exe:

let the defaults checked:

use the first or second option:

select your CR/LF behavior

You’re done🙂 On the desktop should be a shortcut for “GitBash“:

Double-Click and type:

git --version

you should get:

I have successfully installed on Windows XP and Windows 7 – 64bit (both running under Parallels VM’s on OSX)

use of ssh

if working with Remote Repositories of Git or Mercurial you have to use ssh. How to install and use ssh, ssh -keygen… will be demonstrated in another post.

The overview of my blog seriesabout DVCS can be found here: https://ekkescorner.wordpress.com/blog-series/git-mercurial/.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s