Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save farhad0085/79f05ad80eae10957486f17ea2c32bf8 to your computer and use it in GitHub Desktop.

Select an option

Save farhad0085/79f05ad80eae10957486f17ea2c32bf8 to your computer and use it in GitHub Desktop.
Resetting github access token when it expires

Run these commands in your terminal.

Make sure you replace tokenXYZ with your actual token.

sudo git remote remove origin
sudo git remote add origin https://tokenXYZ@github.com/Assiduus-Global/Assiduus-Dashboard-BE.git
sudo git pull
sudo git branch --set-upstream-to=origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment