Let say I have 2 user accounts. Mostly I use user1 even I authorized user1 into my VSCode so I don't have to put my credentials when I am pulling and pushing my commit.
When I created user2, I changed my credentials on my VSCode. And I got invited into organization and its repository using user2. But when I am pushing my commit to GitHub, it shows that the commit was made by user1 (not user2) even when I tried git config --list
on my local folder it shows user1.
What should I do to change it so my commit will appear from user2 ?