How to change my Git username in terminal?

后端 未结 13 1867
予麋鹿
予麋鹿 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"
    

提交回复
热议问题