The user for my git commits has changed, but I am not able to change that inside of Visual Studio Code.
I changed the global settings in git, but when I want to push
Press Ctrl + Shift + G in Visual Studio Code and go to more and select Show git output. Click Terminal and type git remote -v and verify that the origin branch has latest username in it like:
origin git@github.com:DroidPulkit/Facebook-Chat-Bot.git (fetch)
origin git@github.com:DroidPulkit/Facebook-Chat-Bot.git (push)
Here DroidPulkit is my username.
If the username is not what you wanted it to be then change it with:
git add remote origin git@github.com:newUserName/RepoName.git