How to change users on Git (Terminal)💁
THANKS 👏: I appreciate the many claps most my readers leave because it takes me a long time to write these free articles.
I’m sure those who have multiple GitHub accounts, will have felt the pain of committing with the wrong user.
😎 Here’s how to solve it:
0.) Type into the terminal to see the current user:
git config --list
1.) Change the current user:
git config --global user.name [your username]git config --global user.email [your email]
git config --global user.name "exampleUser"git config --global user.email "email@example.com"
And wala! you have changed your user! 😊
Hope this helps! Tell me if you have any questions!