title: phabricator diffusion git username password for git fetch
body: <p>With a Phabricator server installed, I am trying to add a git private repo to be used in Diffusion and in Differential for code review.
  I added a git repo on the Phabricator web console and was able to manually clone the repo on the server. With that am able to browse via diffusion.</p>
  
  <p>But subsequent git fetch as part of the PhabricatorRepositoryPullLocalDaemon fails with </p>
  
  <p><code>stderr:fatal: could not read Username for 'https://github.com': No such device or address
  error: Could not fetch origin</code></p>
  
  <p>I tried following:</p>
  
  <p>I added my credentials that I used to <code>git clone</code> to <code>git config --global list</code> and can see it in <code>.gitconfig</code> file in the user home dir (in this case root)</p>
  
  <p>I also added a <code>.netrc</code> file in root home dir containing </p>
  
  <pre><code>machine github.com
  login &lt;username&gt;
  password &lt;password
  </code></pre>
  
  <p>Please let me know what am I missing. Any help much appreciated.</p>