How to change my Git username in terminal?

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

    I recommend you to do this by simply go to your .git folder, then open config file. In the file paste your user info:

    [user]
        name = Your-Name
        email = Your-email
    

    This should be it.

提交回复
热议问题