Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by alvinalexander.com #
 
PREVIOUS NEXT
Tagged: #check #git #username
ADD COMMENT
Topic
Name
1+6 =