How to get Git 1.8 in Cygwin? [closed] How to get Git 1.8 in Cygwin? [closed] git git

How to get Git 1.8 in Cygwin? [closed]


cygwinports has many new versions of various tools

At the time i write this it has 1.8.3.4

New, simplified installation instructions:

  • Use the latest Cygwin installers (at least version 2.829): setup-x86.exe for 32-bit, or setup-x86_64.exe for 64-bit. (Note that many packages have not yet been ported to x86_64.)
  • Launch setup-*.exe with the -K flag, e.g.:

    cygstart -- /path/to/setup-x86.exe -K http://cygwinports.org/ports.gpg

  • On Choose Installation Type page, select "Install from Internet".

  • On Choose Download Site(s) page, select a distro mirror, then enter ftp://ftp.cygwinports.org/pub/cygwinports in the User URL field and press Add (making sure that both are highlighted).
    1. Alternatively, you can use a sourceware mirror, but if you do, you must use one hosted on a different server than your selected distro mirror.
  • Proceed with package selection and installation, making sure to install any indicated dependencies.


To install git 1.8.0 you need to compile the source code.

You need to clone the git repository (git clone https://github.com/git/git.git), enter the git directory, change the current version to 1.8.0 or other version that you want (git checkout v.1.8.0) and type the following commands:

make configure./configure --prefix=/usr/localmakemake install

It will install git under /usr/local directory. For more information about git installation, like documentation, you can take a look in INSTALL file localized in git repository root.


I successfully installed git 1.8.4.474 by following these instructions; I'm running Windows 7 64 bits, cygwin version 1.7.22(0.268/5/3)

  1. Run the Cygwin setup utility and ensure you have the following packages installed:

    gccautoconfcurllibcurl-devel, required for http/https support                (NOTE: this is an obsolete package, you will need to               uncheck "Hide obsolete packages" when selecting packages               to install)makelibiconvpythonperlgettext

    You may need libiconv-devel and cygwin32-liviconv (see Marek's comment)

  2. Clone the Git sources with git clone https://github.com/git/git.git. A couple of notes on that with respect to Git configuration:

    Make sure core.autocrlf=false, otherwise you'll end up with DOS style line endings that cause the build to break.

    I also had a screwy http.sslcainfo property value; either unset it or point it to /usr/ssl/certs/ca-bundle.crt.

  3. From your newly cloned git repo, run the following commands:

    make configure./configuremakemake install