set git credentials locally code example
Example: default credentials git
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>