Wednesday, 10 July 2019

Switch git user on command line

Check who is the current user

$ git config --list  

Change user


$ git config --global user.name "Bob"
$ git config --global user.email "bob@example.com"

Delete old password

Open keychain



 Search 'git', delete 'github.com'



Reference: https://superuser.com/questions/1064197/how-to-switch-git-user-at-terminal

No comments:

Post a Comment