How to remove GitHub password from VSCode?

后端 未结 2 704
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 06:25

I have cloned one of my GitHub repositories with VSCode and I have made some commits. VSCode has asked me for my GitHub password when I have done the first commit.

I

2条回答
  •  青春惊慌失措
    2020-12-16 07:15

    Check your git config credential.helper:

    • if it is manager, you would need to open your Windows Credential Manager and remove your credentials there.
      See this answer for illustration.

      git credential-manager reject https://github.com
      
    • if it is a osxkeychain, see "Updating credentials from the OSX Keychain"

      git credential-osxkeychain erase https://github.com
      

    Reminder, those credentials (username/password) have nothing to do with your git config user.name/user.email.

提交回复
热议问题