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
Generally VSCode uses the github credentials from system's credential manager, it doesn't store anywhere in the settings. As question says Changing the git user inside Visual Studio Code, is not inside rather outside.
Search for or Go to credential manager (Windows control panel) -> Windows Credentials -> Update the GitHub password from the list.