To cache the git username and password on windows, use the following command:
git config --global credential.helper wincred
To cache the git username and password on linux, use the following command:
git config --global credential.helper store