Setting user access token on GitHub.com

Reminder to myself

GitHub.com removed its support for password authentication on August 13, 2021. Now I need to use a personal access token instead on VS Code. These are the steps to setup GitHub auth. with personal access token:

  1. Create personal access token on Github page: Settings / Developer Settings / Personal Access Tokens
  2. Set the current directory on command line to your Project root:
    1
    
    > cd C:\Users\MyProject
  3. Run this command:
    1
    2
    
    > git remote set-url youroriginname 
    https://yourusername:pastetokenhere@github.com/yourusername/yourrepository.git
    
comments powered by Disqus