Installing git v1.9 on Cygwin and Ubuntu

Posted on Friday, August 8, 2014


In another git tutorial I had to install Cygwin 1.9 on Cygwin and Ubuntu.  I have a feeling other people may just want this small piece of info when googling for it.

This blog post just covers this small subject quickly.  (This assumes you have some version of git already installed)



Cygwin


To install a newer version of git on cygwin follow this procedure (I am going to go to version 1.9)


     > git clone https://github.com/git/git.git
     > cd git
     > git checkout v1.9.0


Now that you have v 1.9 checked out do the following


     > make configure
     > ./configure --prefix=/usr/local
     > make
     > make -i install


After doing this I opened a new cygwin window and ran the following to confirm the update



     > git --version





Ubuntu


I also had to install git v 1.9.0 on my Ubuntu 10.04 server to do this I ran the following commands


     > git clone https://github.com/git/git.git
     > cd git
     > git checkout v1.9.0



Now that you have v 1.9 checked out do the following


     > make configure
     > ./configure --prefix=/usr
     > make
     > make -i install



After doing this I opened a new cygwin window and ran the following to confirm the update


     > git --version