title: Git clone, push and pull all hang with no messages
body: <p>Until yesterday, <code>git</code> worked perfectly on my computer. Now, whenever I try to push, pull or clone a repository, git hangs. I've tried through both SSH and HTTPS.</p>
  
  <p>Unlike a lot of other StackOverflow questions posted around this issue, my operation hangs on the same early stage.</p>
  
  <p>For example, running <code>GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push origin master</code> gives the following trace:</p>
  
  <pre><code>09:09:45.400105 git.c:418               trace: built-in: git push origin master
  09:09:45.892978 run-command.c:643       trace: run_command: GIT_DIR=.git git-remote-https origin https://github.com/SOBotics/Botpy.git
  * Couldn't find host github.com in the .netrc file; using defaults
  *   Trying 192.30.253.112...
  * TCP_NODELAY set
  </code></pre>
  
  <p>Without setting the debug environment variables, no messages are shown. However, when I'm cloning a repository, it shows <code>Cloning into &lt;name&gt;...</code>, and then gets stuck at the same stage in the above traceback.</p>
  
  <p>Here's what I've already tried:</p>
  
  <ul>
  <li>Reinstalling <code>git</code> through Homebrew.</li>
  <li>Rebooting my computer a couple of times.</li>
  <li>Disabling <a href="https://pi-hole.net" rel="nofollow noreferrer">Pi-hole</a> (I've been running Pi-hole since multiple months, and I never faced such an issue).</li>
  <li><code>git config --global core.askpass "git-gui--askpass"</code>: from an answer in a similar thread. This had no affect.</li>
  <li><code>xcode-select --reset</code></li>
  <li>Checking whether the IP in the trace is the same as in <code>host github.com</code>; it is the same.</li>
  <li>Tried cloning different repositories, through both HTTPS and SSH.</li>
  </ul>
  
  <p>I'd also like to note that Homebrew updates also get stuck, probably because of the same issue. Homebrew's curl upgrade also hung. Other git functions like <code>commit</code> and <code>add</code> seem to be working fine.</p>
  
  <p>I'm on macOS Mojave, running git version <code>2.20.1</code>. The repositories I'm trying to push, pull and clone are all on GitHub. </p>