PROJECTS NOTES HOME

Authenticate to git with personal access token

1 Personal access token

After you have introduced yourself to git.

When you do a git operation(with magit or just from the terminal) you will be prompted for password. One way is to get with a generated personal access token in github developer settings.

Go generate that token, save it somewhere safe.

Then in the terminal do:

git config --global --replace-all credential.helper cache
git config --global credential.helper store

Now try to push the code, enter your git username as username and enter the token that you have generated as password.

Git will remember your credentials for future git operations.

2 Misc info

Changing the token - Explanation here.

git config --list (some info about you)