title: Personal Access Token in Github not working
body: <p>I have a private repository on my personal Github account that I work on from time to time, but not on a daily basis. </p>
  
  <p>The repository has been cloned using <strong>HTTPS</strong> (<em>not</em> SSH or git://). 
  In order to access the repository from the command line, I set up a personal access token as explained here: <a href="https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/" rel="noreferrer">https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/</a></p>
  
  <p>I am <strong>positive</strong> it did work back then (I moved away from SSH precisely because this kind of persistent headache).</p>
  
  <p>However, when I try to push to my repository after a few weeks I get the dreaded: </p>
  
  <pre><code>$ remote: Repository not found. fatal: repository
  $ 'https://github.com/nicolas-miari/MyPrivateRepo.git/' not found
  </code></pre>
  
  <p><strong>What am I missing?</strong></p>
  
  <hr>
  
  <p><strong>Addendum:</strong> I deleted the token on Github, created a new one, and followed the instructions here: <a href="https://help.github.com/articles/updating-credentials-from-the-osx-keychain/" rel="noreferrer">https://help.github.com/articles/updating-credentials-from-the-osx-keychain/</a> to clear the old token stored in the keychain. I was able to re-clone my private repository. However, </p>
  
  <ol>
  <li><p>This still doesn't explain why the previous access token suddenly stopped working, and</p></li>
  <li><p>My keychain had two "Internet password" entries matching the host <code>github.com</code>: The access token I just deleted, and the my web login password for a different Github account (work). <strong>Maybe this has something to do with it?</strong></p></li>
  </ol>
  
  <p><strong>Background info:</strong> To avoid having to log in/out frequently, I have my work account's web credentials saved in <strong>Safari</strong> (and the Keychain), and my personal account's web credentials saved in <strong>Firefox</strong>.</p>
  
  <hr>
  
  <p><strong>Addendum 2:</strong> After running the command given on the linked help page:</p>
  
  <pre><code>$ git credential-osxkeychain erase
    host=github.com
    protocol=https
    [enter]
  </code></pre>
  
  <p>...the additional password is gone from the Keychain (only my newly added Personal Token remains), however I can still log in to my account on Safari...?</p>
  
  <hr>
  
  <p><strong>Update:</strong> Now I can't push to repos from my work account (which credentials I deleted from Keychain...). This system really needs a healthy dose of <strong>Just Works</strong>... </p>