Search notes:

~/.git-credentials

TODO

Storing Github Personal Access Tokens (PAT) for Github in Linux

The following shell command try to demonstrate how a Personal Access Token for GitHub can be stored in Linux:
githubToken='ghp_…'
git config --global credential.helper store
echo "https://ReneNyffenegger:$githubToken@github.com" > ~/.git-credentials

Windows

It's possible in Windows to store the credentials (that is: the User Access Token (UAT)) for GitHub with something like
C:\> cmdkey /generic:git:https://github.com /user:ReneNyffenegger /pass:ghp_XXXX…

See also

%UserProfile%\.git-credentials

Index