Changing the git user inside Visual Studio Code

后端 未结 8 1817
时光取名叫无心
时光取名叫无心 2020-12-04 16:53

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

相关标签:
8条回答
  • 2020-12-04 17:12

    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
    
    0 讨论(0)
  • 2020-12-04 17:14

    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.

    0 讨论(0)
提交回复
热议问题