title: git on mac os from homebrew: fatal: unable to access
body: <p>After installing Git from Homebrew I cannot working with remote repositories:</p>
  
  <pre><code>$ brew install git
  $ git --version
  git version 2.3.0
  $ git pull
  fatal: unable to access 'https://github.com/...': Couldn't connect to server
  </code></pre>
  
  <p>If I will remove Homebrew version all works fine.</p>
  
  <p>How can I use the last git version to work with remote repositories?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I can clone the repository using SSH (git@github.com:...), but have the error with HTTPS urls (<a href="https://github.com/.." rel="nofollow">https://github.com/..</a>.)</p>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>$ git config -l
  
  Andrey Demidov, [07.02.15 23:48]
  push.default=simple
  user.name=Andrey Demidov
  user.email=****@gmail.com
  mergetool.keepbackup=false
  http.sslverify=false
  core.repositoryformatversion=0
  core.filemode=true
  core.bare=false
  core.logallrefupdates=true
  core.ignorecase=true
  core.precomposeunicode=true
  remote.origin.url=https://github.com/demas/stackify-node.git
  remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
  branch.master.remote=origin
  branch.master.merge=refs/heads/master
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>$ GIT_CURL_VERBOSE=1 git push
  
  stackify/node » GIT_CURL_VERBOSE=1 git push ‹master›
  * Couldn't find host github.com in the .netrc file; using defaults
  * Hostname was NOT found in DNS cache
  * Trying 192.30.252.130...
  * Immediate connect fail for 192.30.252.130: Host is down
  * Closing connection 0
  fatal: unable to access 'https://github.com/demas/stackify-node.git/': Couldn't connect to server
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>Here is a traceroute result:</p>
  
  <pre><code>stackify/node » traceroute github.com ‹master›
  traceroute to github.com (192.30.252.130), 64 hops max, 52 byte packets
  load: 1.24 cmd: traceroute 34029 waiting 0.00u 0.00s
  load: 1.24 cmd: traceroute 34029 waiting 0.00u 0.00s
  load: 1.24 cmd: traceroute 34029 waiting 0.00u 0.00s
   1 192.168.1.1 (192.168.1.1) 3.571 ms 3.022 ms 2.565 ms
   2 bras255-lo0.ppos.corbina.net (195.14.38.33) 3.427 ms 4.671 ms 3.899 ms
   3 * * *
   4 ko-crs-be5.corbina.net (195.14.54.184) 23.766 ms 24.413 ms 25.010 ms
   5 tc-bb-ae0.sto.corbina.net (195.14.54.157) 22.168 ms 21.946 ms 22.328 ms
   6 beeline-gw6.bar1.stockholm1.level3.net (213.242.69.13) 22.280 ms
   beeline-gw7.bar1.stockholm1.level3.net (213.242.110.217) 23.015 ms
   beeline-gw1.bar1.stockholm1.level3.net (213.242.110.9) 23.303 ms
   7 ae-3-80.edge3.washington4.level3.net (4.69.149.146) 138.533 ms
   ae-4-90.edge3.washington4.level3.net (4.69.149.210) 150.283 ms *
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <ul>
  <li>All Git commands work fine in standard OSX console application</li>
  <li>All Git commands work fine if I use them with <code>sudo</code> in iTerm.</li>
  <li>But I have the problem only in iTerm without <code>sudo</code> command</li>
  </ul>