Change the username for Git in Xcode?
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 commits to my user on GitHub.
Usually with Git I've been able to just type git config --global user.name whoosh in the terminal but it doesn't seem to work on Mac and Xcode.
Changing your contact card would change user information (for new commits)
The following terminal commands works for me:
xcrun git config --global user.name 'new_user_name' xcrun git config --global user.email 'firstname.lastname@example.org'
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.