Horje
check git username Code Example
git list user and email
git config --global --get user.name
git config --global --get user.email
git username
$ git config --global user.name
> "John Smith"

$ git config --global user.email 
> "johnsmith@example.com"

if you have configured multiple git users in your machine
$ git config --global user.name ### It will give name of git user who is globaly scoped
$ git config user.name ### It will give name of git user who has scope with respect to current repository
get git username and email
git config user.name
git config user.email
set username git
git config --global user.name "My Name"
how to check the current git user
To know the username, type:

git config user.name

To know the email, type:

git config user.email
check git username
Just use --local instead of --global. In fact, local is the default so you can just do

git config --local user.email personal@example.org
git config --local user.name "whatf hobbyist"

in one repo, and

git config --local user.email work@example.com
git config --local user.name "whatf at work"

in another




Shell

Related
ll command not found Code Example ll command not found Code Example
bitbucket how to undo commit Code Example bitbucket how to undo commit Code Example
how do i know if a gem is installed Code Example how do i know if a gem is installed Code Example
install ssl ubuntu Code Example install ssl ubuntu Code Example
how to pull the changes from git without staging local changes Code Example how to pull the changes from git without staging local changes Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12