How to change my Git username in terminal?

后端 未结 13 1809
予麋鹿
予麋鹿 2020-12-07 07:17

I was pushing and pulling from git in Terminal then I changed my username on github.com. I went to push some changes and it couldn\'t push because it was still recognizing

13条回答
  •  眼角桃花
    2020-12-07 07:36

    There is a easy solution for that problem, the solution is removed the certificate the yours Keychain, the previous thing will cause that it asks again to the user and password.

    Steps:

    1. Open keychain access

    1. Search the certificate gitHub.com.

    2. Remove gitHub.com certificate.

    3. Execute any operation with git in your terminal. this again ask your username and password.

    For Windows Users find the key chain by following:

    Control Panel >> User Account >> Credential Manager >> Windows Credential >> Generic Credential

提交回复
热议问题