title: Using git credentialmanager with github tokens for gists
body: <p>I'm trying to push my gist to github and trying to do it the right way by using the credential manager as per <a href="https://stackoverflow.com/a/51505417/52598">this answer</a></p>
  <p>I assumed following simple workflow would suffice</p>
  <ul>
  <li>clone a gist</li>
  <li>pushing would ask credentials (username/token)</li>
  </ul>
  <p>Unfortunately, it's either not that simple or I messed up somewhere else. All I get is a <code>remote: Repository not found.</code></p>
  <hr />
  <p><strong>Cloning my gist</strong></p>
  <pre><code>C:\Users\lieve\AppData\Local\Temp&gt;git clone https://gist.github.com/lkeersmaekers/4884d047b3b90ccd697a4d7ec21be49d
  Cloning into '4884d047b3b90ccd697a4d7ec21be49d'...
  remote: Enumerating objects: 9, done.
  remote: Total 9 (delta 0), reused 0 (delta 0), pack-reused 9
  Receiving objects: 100% (9/9), done.
  Resolving deltas: 100% (2/2), done.
  </code></pre>
  <p><strong>Show remotes</strong></p>
  <pre><code>C:\Users\lieve\AppData\Local\Temp&gt;cd 4884d047b3b90ccd697a4d7ec21be49d
  C:\Users\lieve\AppData\Local\Temp\4884d047b3b90ccd697a4d7ec21be49d&gt;git remote -v
  origin  https://gist.github.com/lkeersmaekers/4884d047b3b90ccd697a4d7ec21be49d (fetch)
  origin  https://gist.github.com/lkeersmaekers/4884d047b3b90ccd697a4d7ec21be49d (push)
  </code></pre>
  <p><strong>Try to push fails and doesn't ask any credential</strong></p>
  <pre><code>C:\Users\lieve\AppData\Local\Temp\4884d047b3b90ccd697a4d7ec21be49d&gt;git push
  remote: Repository not found.
  fatal: repository 'https://gist.github.com/lkeersmaekers/4884d047b3b90ccd697a4d7ec21be49d/' not found
  </code></pre>
  <p><strong>Credential manager diagnosis</strong>
  C:\Users\lieve\AppData\Local\Temp\4884d047b3b90ccd697a4d7ec21be49d&gt;git credential-manager-core diagnose
  Running diagnostics...</p>
  <pre><code> [ OK ] Environment
   [ OK ] File system
   [ OK ] Networking
   [ OK ] Git
   [ OK ] Credential storage
   [ OK ] Microsoft authentication (AAD/MSA)
   [ OK ] GitHub API
  
  Diagnostic summary: 7 passed, 0 skipped, 0 failed.
  </code></pre>
  <p>I can get push to work by changing the remote to <code>https://&lt;token&gt;@gist.github.com/lkeersmaekers/4884d047b3b90ccd697a4d7ec21be49d</code> but that's exactly what the credential manager <em>should</em> take care of?</p>