How to update expired GitHub token on local git remote config

If you GitHub Personal access token that you were using to push your code has expired and you want to update it, then follow the below steps,

  1. Make sure you have generate the new token - if not follow this tutorial - Generate new authentication token
    GitHub expired Personal access tokens
  2. Now make a note of the token generated and create run he below in Terminal,
    % git remote set-url origin
  • That is it!
  • Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap