login command in git bash code example
Example 1: how to login to git from terminal
git config --global user.name "your_username"
Example 2: git bash set global username and password
$ git config --list --show-origin
git config --global user.name "your_username"
$ git config --list --show-origin