title: How to switch a git repository from user/password authentication to personal access token?
body: <p>I got informed by GitHub that I need to switch to token. I followed the guide and created a token. What the guide doesn't say is what I have to do on my local computer (I am running Linux). In the past I had configured my git</p>
  <pre><code>git config --global user.name &quot;name&quot;
  git config --global user.email my@emailadress.com
  </code></pre>
  <p>In my ~/.git-credentials I do see my user and a hashed password.</p>
  <p>What do I have to do to have token access?</p>
  <ul>
  <li>Deleting .git-credentials didn't help, it was recreated</li>
  <li>I run git config --global github.token ab7....aaa</li>
  </ul>
  <p>Is it now using my token if no what do I have to do? If yes, can I remove my old hashed password from the local configuration?</p>