Tips for using Git and GitHub
Storing credentials
A useful command for storing Git credentials (username and password) in memory for 15 minutes:
git config --global credential.helper cache
or permanently in plaintext file ~/..git-credentials
(when using the --global
flag)
git config --global credential.helper store
For additional info see this post or this one.
To see which method of credential storage we are using, issue the command
git config -l
GitHub Access token
Once a personal GitHub access token is created, it can be used in place of a password (together with the username) for command line operations such as git push
.
DISCLAIMER: This guide is provided for purely educational purposes. I take no responsibility for any consequences the may result from following these instructions.