When trying to clone ANY repository via https from github, we get:
git clone https://github.com/rails/rails.git Cloning into rails... remote HEAD refers to nonex
Another simple solution would be:
regressing libcurl3 from 7.21.0 to 7.19.5.
Download it from here:
amd64: http://launchpadlibrarian.net/30289951/libcurl3-gnutls_7.19.5-1ubuntu2_amd64.deb
i386: http://launchpadlibrarian.net/30287711/libcurl3-gnutls_7.19.5-1ubuntu2_i386.deb