how to set username and password in git for a repo code example Example: how to set global github username and password in git $ git config --global credential.helper wincred