The easiest way I found was with this command:
git config --global credential.https://github.com.username <your_username>
This works on a site by site basis and modifies your global git config.
To see the changes, use:
git config --global --edit