Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

view git username

# show your Git username
git config --list

#an other way
`/.gitconfig
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: https://git-lfs.github.com/ 
Shell :: gitignore file without extension 
Shell :: check apache version ubuntu 
Shell :: eslint-plugin-react-hooks 
Shell :: npm install bootstrap 3 
Shell :: how to update forked repo in github 
Shell :: git log filter merge commits 
Shell :: nvm remove node version 
Shell :: npm install dev dependencies 
Shell :: linux move all files up a directory 
Shell :: linux update command 
Shell :: cat eof 
Shell :: download putty for ubuntu 
Shell :: how to check if helm is installed 
Shell :: install spring boot on ubuntu 
Shell :: (28: No space left on device) 
Shell :: install ssh-agent 
Shell :: git clone ssh key 
Shell :: install brew in mac 
Shell :: cluster_block_exception 
Shell :: brave browser install on ubuntu 
Shell :: remove commit not pushed 
Shell :: ohmyzsh 
Shell :: check if service is running server 
Shell :: make git use a ssh key 
Shell :: bash minimize window 
Shell :: revert last merge git 
Shell :: ghost in the shell 
Shell :: vim delete line 
Shell :: tar extract to specific location 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =