Last active
August 29, 2015 14:07
-
-
Save jrnewell/1ff0452386af00e03e77 to your computer and use it in GitHub Desktop.
Build a newer version of Git on Cygwin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build a newer version of Git on Cygwin | |
1. Run the Cygwin setup utility and ensure you have the following packages installed: | |
- gcc | |
- autoconf | |
- curl | |
- libcurl-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) | |
- make | |
- libiconv | |
- python | |
- perl | |
- gettext | |
- 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. | |
- cd git; git checkout v2.1.2 (or the tag you want to build) | |
3. From your newly cloned git repo, run the following commands: | |
- make configure | |
- ./configure | |
- make | |
- make install | |
Restart cygwin and do git --version. Git should be installed in /usr/local/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment