title: git clone failing even after setting proxy with username:password
body: <p>I am trying to clone the RestKit from <a href="https://github.com/RestKit/RestKit.git" rel="nofollow">https://github.com/RestKit/RestKit.git</a>.<br>
  This is what I have done so far:</p>
  
  <ol>
  <li><p>Installed git.  </p></li>
  <li><p>Set up the <code>.gitconfig</code> file with correct params in <code>~/</code></p>
  
  <pre><code>[user]  
      name = myName   
      email = myEmail  
  [http]  
      proxy = http://&lt;username for proxy&gt;:&lt;password for proxy&gt;@PROXY:8080  
      sslverify = false  
  [https]  
      proxy = https://&lt;username for proxy&gt;:&lt;password for proxy&gt;@PROXY:8080  
  </code></pre></li>
  <li><p>Started the clone command as follows:  </p>
  
  <pre><code>git clone https://github.com/RestKit/RestKit.git  
  </code></pre></li>
  </ol>
  
  <p>I am getting the following error:  </p>
  
  <pre><code>Cloning into 'RestKit'...  
  error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/RestKit/RestKit.git/info/refs?service=git-upload-pack  
  fatal: HTTP request failed  
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>UPDATE:<br>
  When I replace the http.proxy in the .gitconfig file with<br>
      http://:8080  </p>
  
  <p>i.e., without the credentials, then I get the following error:  </p>
  
  <pre><code>Cloning into 'RestKit'...  
  error: The requested URL returned error: 407 while accessing https://github.com/RestKit/RestKit.git/info/refs?service=git-upload-pack  
  fatal: HTTP request failed  
  </code></pre>