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
I had the same problem as Daniel, setting the commit address and unsetting the credentials helper also worked for me.
git config --global user.email '<git-commit-address>'
git config --global --unset credential.helper
This could be because of the reason that the credentials are saved and you need to update those credentials and you can do that by following the below steps
control panel-> credential manager ->under generic credential you will be able to see the credentials related to git
Try to update them if that does not work delete them and add new ones
for other platforms or different versions of the operating system you need to find out where the credentails are saved related to git and update them.