Remove credentials from Git

后端 未结 30 1722
不知归路
不知归路 2020-11-21 10:13

I\'m working with several repositories, but lately I was just working in our internal one and all was great.

Today I had to commit and push code into other one, but

30条回答
  •  感情败类
    2020-11-21 10:26

    For macOS users :

    This error appears when you are using multiple Git accounts on the same machine.

    Please follow below steps to remove the github.com credentials.

    1. Go to Finder
    2. Go to Applications
    3. Go to Utilities Folder
    4. Open Keychain Access
    5. Select the github.com and Right click on it

    Delete "github.com"

    Try again to Push or Pull to git and it will ask for the credentials. Enter valid credentials for repository account. Done

提交回复
热议问题