title: git pull gives error: 401 Authorization Required while accessing https://git.foo.com/bar.git
body: <p>My macbook pro is able to clone/push/pull from the company git server.
  My cent 6.3 vm gets a 401 error </p>
  
  <pre><code>git clone https://git.acme.com/git/torque-setup
  "error: The requested URL returned error: 401 Authorization Required while accessing https://git.acme.com/git/torque-setup/info/refs
  </code></pre>
  
  <p>As a work around, I've tried creating a folder, with an empty repository, then setting the remote to the company server. I get the same error when trying a git pull</p>
  
  <p>The remotes are identical between the machines</p>
  
  <p><em><strong>MacBook Pro</em></strong> (working)</p>
  
  <pre><code>git --version
  git version 1.7.10.2 (Apple Git-33)
  
  git remote -v
  origin  https://git.acme.com/git/torque-setup (fetch)
  origin  https://git.acme.com/git/torque-setup (push)
  </code></pre>
  
  <p><em><strong>Cent 6.3</em></strong> (not working)</p>
  
  <pre><code>yum install -y git
  
  git --version
  git version 1.7.1
  
  git remote -v
  origin  https://git.acme.com/git/torque-setup (fetch)
  origin  https://git.acme.com/git/torque-setup (push)
  </code></pre>
  
  <p><br>
  The git server only allows https. Not git or ssh connections. </p>
  
  <p>Why is the  macbook pro able to do a git pull, while the cent os machine can't? </p>
  
  <p><br>
  <strong><em>Solution Update 2013-5-15</em></strong></p>
  
  <p>As jku mentioned, the culprit is the old version of git installed on the cent box. Unfortunately, 1.7.1 is what you get when you run <code>yum install git</code></p>
  
  <p>The work around is to manually install a newer version of git, or simply add the username to the repo</p>
  
  <pre><code>git clone https://joe@git.acme.com/git/torque-setup
  </code></pre>