git command to login to github code example

Example 1: login github command line

git config --global user.email "[email protected]"

Example 2: linux login to github via git

$ git config --global user.name "Your name here"
$ 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"

Example 5: linux login to github via git

$ git config --global user.name "Your name here"
$ git config --global user.email "[email protected]"

$ git config --global color.ui true
$ git config --global core.editor emacs