How to change users on Git (Terminal)πŸ’

Kiki AI
Nov 25, 2019

--

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]

Example :

git config --global user.name "exampleUser"git config --global user.email "example@example.com"

And wala! you have changed your user! 😊

Hope this helps! Tell me if you have any questions!

--

--

Kiki AI
Kiki AI

Written by Kiki AI

26K+ Reads ✍🏼 Passionate about tech, AI and impact πŸ‘Œ Views are all my own.

No responses yet