To log in to your GitHub account from your computer:
git clone
or git push
).GitHub recommends that your tokens don't last forever, for increased security. This means that they'll inevitably stop working, and at some point you'll just be faced with "unauthorized" errors when trying to do things with Git.
When this happens, "log out" of Git (instructions below), generate another token (instructions above), and log back in using that new token.
If your credentials don't work anymore (maybe your token expired), you can have Git forget your username and password by running:
git config --global --unset credential.helper
If get is asking for your username and password every time, run the following command:
git config --global credential.helper store
You'll need to enter your password once more after this, and then it should be saved from then on.
Have questions?