More specifically, whenever I type:
git clone https://github.com/lord/slate slate
The resulting output is:
Cloning into 'slate'...
However, the directory 'slate' is not created and nothing was received. If I enable the curl trace log by typing this:
GIT_TRACE_CURL=1 git clone https://github.com/lord/slate slate
The resulting output is this:
Cloning into 'slate'...
16:19:21.978835 http.c:638 == Info: Couldn't find host github.com in the .netrc file; using defaults
16:19:22.064932 http.c:638 == Info: Trying 192.30.253.113...
16:19:22.065011 http.c:638 == Info: TCP_NODELAY set
16:19:22.178879 http.c:638 == Info: Connected to github.com >
(192.30.253.113) port 443 (#0)
I recently installed Mac OS X Sierra, but I had the same problem before the update. I also updated the git version recently and I am right now using version 2.13.1 (although I was also experiencing the same problem with the previous version).
Did anyone else experience the same issue and maybe found the reason that was causing it?
EDIT
In the case of 'git push', the following command, executed in a local repository with committed changes:
git push origin master
Outputs the following text:
* Couldn't find host git2-rdlab.cs.upc.edu in the .netrc file; using defaults
* Trying 147.83.29.205...
* TCP_NODELAY set
* Connected to git2-rdlab.cs.upc.edu (147.83.29.205) port 80 (#0)
> GET /jesusdz/PaperGradients.git/info/refs?service=git-receive-pack HTTP/1.1
Host: git2-rdlab.cs.upc.edu
User-Agent: git/2.13.1
Accept: /
Accept-Encoding: gzip
Pragma: no-cache
< HTTP/1.1 302 Found
< Date: Fri, 21 Jul 2017 17:14:14 GMT
< Server: Apache/2.2.22 (Ubuntu)
< Location: https://git2-rdlab.cs.upc.edu/jesusdz/PaperGradients.git/info/refs?service=git-receive-pack
< Vary: Accept-Encoding
< Content-Encoding: gzip
< Content-Length: 234
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
* Curl_http_done: called premature == 0
* Connection #0 to host git2-rdlab.cs.upc.edu left intact
* Issue another request to this URL: 'https://git2-rdlab.cs.upc.edu/jesusdz/PaperGradients.git/info/refs?service=git-receive-pack'
* Couldn't find host git2-rdlab.cs.upc.edu in the .netrc file; using defaults
* Trying 147.83.29.205...
* TCP_NODELAY set
* Connected to git2-rdlab.cs.upc.edu (147.83.29.205) port 443 (#1)
I think that the problem is related to the part that says the following (although I am not sure):
Ignoring the response-body
Curl_http_done: called premature == 0