title: Sourcetree remote: Invalid username or password
body: <p>Im trying to push to github with sourcetree but get the following error:</p>
  
  <blockquote>
    <p>git -c diff.mnemonicprefix=false -c core.quotepath=false push -v
    --tags origin live_version:live_version remote: Invalid username or password. fatal: Authentication failed for
    '<a href="https://github.com/myname/myrepo/" rel="noreferrer">https://github.com/myname/myrepo/</a>' Pushing to
    <a href="https://github.com/myname/myrepo" rel="noreferrer">https://github.com/myname/myrepo</a></p>
    
    <p>Completed with errors, see above.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/pmZMm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pmZMm.png" alt="enter image description here"></a>
  However when I go to </p>
  
  <blockquote>
    <p>tools > authentication > my github account</p>
  </blockquote>
  
  <p>And click edit > refresh oauth token
  <a href="https://i.stack.imgur.com/c52yJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c52yJ.png" alt="enter image description here"></a>
  A page opens and I get:</p>
  
  <p>Authentication Successful</p>
  
  <pre><code>SourceTree has been successfully authenticated. You may now close this page.
  </code></pre>
  
  <p>It always worked but it suddenly stopped, i do not have two factor authentication. 
  I tried deleting the account and adding it again to no avail.
  How can I get the connection working again so that I can push my project to github.</p>
  
  <p><em>Sourcetree version 2.1.8.0</em></p>