set git user and password global code example
Example 1: git username
$ git config --global user.name
> "John Smith"
$ git config --global user.email
> "[email protected]"
if you have configured multiple git users in your machine
$ git config --global user.name
$ git config user.name
Example 2: git config username and password global
git config --global user.name "fname lname"
git config --global user.email "[email protected]"
git config --global user.password "secret"
Example 3: git bash set global username and password
$ git config --list --show-origin
Example 4: git config
Open the command line.
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "[email protected]"