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
You can view all of your settings and where they are coming from using:
git config --list --show-origin
Delete the unwanted credentials from the directory and then VSCode ask you for the next time you perform git operation.