How to change my Git username in terminal?

后端 未结 13 1792
予麋鹿
予麋鹿 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:41

    From your terminal do:

    git config credential.username "prefered username"
    

    OR

    git config --global user.name "Firstname Lastname"
    
    0 讨论(0)
提交回复
热议问题