TortoiseGitでGithubにPersonal Access Tokenでアクセスする

Githubにアクセスするときの認証方法が変更になっています
github.blog

WindowsでTortoiseGitを使って、この認証方法でアクセスするには、

  1. Creating a personal access token - GitHub Docs を参考にPersonal Access Tokenを作成する。
  2. Gitリポジトリの下にある .git/config ファイルの url で、"https://github.com/..." となっているところを "https://ユーザ名:作成したトークン@github.com/..." と変更する (How to start using a personal access token to authenticate git on windows - #10 by richardofsussex - How to use Git and GitHub - GitHub Support Community)。