SSL certificate rejected trying to access GitHub over HTTPS behind firewall

The problem is that you do not have any of Certification Authority certificates installed on your system. And these certs cannot be installed with cygwin’s setup.exe. Update: Install Net/ca-certificates package in cygwin (thanks dirkjot) There are two solutions: Actually install root certificates. Curl guys extracted for you certificates from Mozilla. cacert.pem file is what you … Read more

fatal: early EOF fatal: index-pack failed

First, turn off compression: git config –global core.compression 0 Next, let’s do a partial clone to truncate the amount of info coming down: git clone –depth 1 <repo_URI> When that works, go into the new directory and retrieve the rest of the clone: git fetch –unshallow or, alternately, git fetch –depth=2147483647 Now, do a regular … Read more

Difference between msysgit and Cygwin + git?

Edit 2018: Since my 2010-2012-2014 answer, in 2015 Git for Windows uses msys2, as I detail here. See more in “How are msys, msys2, and msysgit related to each other?“. Edit (2 more years later: October 2014) Johannes Schindelin just explained (Oct. 2014) that msysgit is phased out: We now have a light-weight Git for … Read more

How can I set up an editor to work with Git on Windows?

Update September 2015 (6 years later) The last release of git-for-Windows (2.5.3) now includes: By configuring git config core.editor notepad, users can now use notepad.exe as their default editor. Configuring git config format.commitMessageColumns 72 will be picked up by the notepad wrapper and line-wrap the commit message after the user edits it. See commit 69b301b … Read more

How to install MinGW-w64 and MSYS2?

Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more