title: JGit requires authentication but git on the commandline doesn't
body: <p>I'm implementing a happy path <code>git push</code> with JGit. </p>
  
  <p>Situation: </p>
  
  <ul>
  <li>I have a git repository (local) that links to a remote git repository (origin)</li>
  <li>git on my machine has been configured with <code>git config --global credential.helper wincred</code> </li>
  <li>The first time I do an operation that requires authentication (such as git push), it asks for username/password and I input them manually. </li>
  <li>The second time, it doesn't</li>
  </ul>
  
  <p><br>
  In this happy path, I assume that git credentials are already configured and these credentials are cached. </p>
  
  <p>With JGit, this code fails: <code>git.push().call();</code> 
  <br>Isn't that statement equivalent to <code>git push</code> from the command line? </p>
  
  <p>If git push from the command line succeeds, then why does JGit fail with "Authentication is required but no CredentialsProvider has been registered"? </p>
  
  <p>If what I am looking for is not possible, I might just fork a process! 
  What do you advise? </p>
  
  <p>Note: the remote could support both ssh or https. In the case I describe above, it supports only http and the remote url = <code>http://&lt;user&gt;@&lt;git-server&gt;/.../&lt;git-repo&gt;.git</code></p>