Run this command to remember your password:
git config --global credential.helper 'cache --timeout 28800'
Above command will tell git to cache your password for 8 hours.
If you want to switch to another github account then u can run this command
git credential-cache exit
Above command will flush any stored password from the cache.
Reference:
- http://git-scm.com/docs/git-credential-cache
- https://askubuntu.com/questions/773455/what-is-the-correct-way-to-use-git-with-gnome-keyring-and-https-repos
git config --global credential.helper wincred
Ref for Windows: http://stackoverflow.com/questions/11693074/git-credential-cache-is-not-a-git-command
Remove keychain from storing your password (When you are on a shared computer)
git config --system --unset credential.helper
Ref: https://stackoverflow.com/questions/16052602/disable-git-credential-osxkeychain
thank you!