Change the username for Git in Xcode?

前端 未结 4 1492
[愿得一人]
[愿得一人] 2021-01-31 11:11

Is there any way to change the Git username and email for Xcode? When I try commit now it will post my real name. I want it to post my GitHub username so that you can link commi

4条回答
  •  庸人自扰
    2021-01-31 11:33

    The following terminal commands works for me:

    xcrun git config --global user.name 'new_user_name'
    xcrun git config --global user.email 'new@email.com'
    

    These are to update user name and e-mail respectively.

    After execution of that commands successive commits to Git via Xcode will use the data specified in it.

提交回复
热议问题