Answers for "terminal check git username"

2

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
Posted by: Guest on February-11-2021
1

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 [email protected]
git config --local user.name "whatf hobbyist"

in one repo, and

git config --local user.email [email protected]
git config --local user.name "whatf at work"

in another
Posted by: Guest on January-28-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language