¿Por qué falla git fetch con "No se pudo resolver el host: (nil) ..." con https://github.com/mxcl/homebrew origin?

No pude instalarHomebrew (mira mipregunta en apple.stackexchange.com), entonces miré elhttps://raw.github.com/mxcl/homebrew/go Ruby script y probó los mismos comandos que ejecuta:

$ git init -q
$ git remote add origin https://github.com/mxcl/homebrew
$ git fetch origin master:refs/remotes/origin/master -n
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew/info/refs?service=git-upload-pack
fatal: HTTP request failed

¿Por qué estoy recibiendo este error?

Actualizar: (en respuesta alocola respuesta)

Me sale el mismo problema cuando uso la URL con.git postfixed

$ git init -q
$ git remote add origin https://github.com/mxcl/homebrew.git
$ git fetch origin master:refs/remotes/origin/master -n
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed

Actualización # 2:

No creo que esto fuera un problema de proxy (como se sugiere ende neil responder).

Intenté esto otra vez y funcionó!

$ git init -q
$ git remote add origin https://github.com/mxcl/homebrew
$ git fetch origin master:refs/remotes/origin/master -n
remote: Counting objects: 126721, done.
remote: Compressing objects: 100% (59085/59085), done.
remote: Total 126721 (delta 89963), reused 100145 (delta 66623)
Receiving objects: 100% (126721/126721), 19.68 MiB | 702 KiB/s, done.
Resolving deltas: 100% (89963/89963), done.
From https://github.com/mxcl/homebrew
 * [new branch]      master     -> origin/master

Miré en mi~/.gitconfig Archivo y descubrí que ya había definido un proxy. Creo que ya estaba allí cuando tuve el problema, pero para confirmar lo eliminé y obtuve un error diferente:

$ git fetch origin master:refs/remotes/origin/master -n
error: Failed connect to github.com:443; Connection refused while accessing https://github.com/mxcl/homebrew/info/refs?service=git-upload-pack
fatal: HTTP request failed

Mi teoría es que github o homebrew tuvieron algún tipo de problema que ya han solucionado.

Respuestas a la pregunta(3)

Su respuesta a la pregunta