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!