How to store GitHub credentials to speed up workflow

Typing Github credentials over and over soon gets tedious! Use the following command so that credentials are stored internally to speed up your workflow.

git config --global credential.helper store

This is really great until you need to switch between different github accounts. For example a work and a personal account. If the credentials are stored for convenience and then you need to use different credentials then any interaction with github will fail. To avoid this simply reverse with the following:

git config --global --unset credential.helper
Posted in Git