how to set local git username and password for a repo code example
Example 1: git bash set global username and password
$ git config --list --show-origin
Example 2: how to set global github username and password in git
$ git config --global credential.helper wincred