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

How to check if running in Cygwin, Mac or Linux?

Usually, uname with its various options will tell you what environment you’re running in: pax> uname -a CYGWIN_NT-5.1 IBM-L3F3936 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin pax> uname -s CYGWIN_NT-5.1 And, according to the very helpful schot (in the comments), uname -s gives Darwin for OSX and Linux for Linux, while my Cygwin gives CYGWIN_NT-5.1. But you … 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

tech