set up git code example
Example 1: git config global
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Example 2: login github command line
git config --global user.email "[email protected]"
Example 3: setup github password terminal
$ git config credential.helper store
$ git push https://github.com/owner/repo.git
Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>
Example 4: login github command line
git config --global user.name "your_username"