set GitHub username and password code example
Example 1: save account to git
git config --global credential.helper store
Example 2: how to set global github username and password in git
$ git config --global credential.helper wincred
git config --global credential.helper store
$ git config --global credential.helper wincred