Reputation: 37
Most likely an easy question here. When I share a github link, my full name is displaying in the bar that contains the commit message. I would like to change that to be just my username. I've been over the settings and I can't seem to find where to change that in the display.
Is it pulling my name from the origin and if so, is it possible to set a username alias from the command line? Or is this a setting within the github user profile that I am simply overlooking?
Any help would be appreciated. Thank you.
Upvotes: 2
Views: 2543
Reputation: 76509
GitHub associates your username with a commit by the email addresses associated with your account. So if the commit email address is associated with a GitHub account, that account will be used. If there's no account associated with that email, the full name as listed in the commit will be used instead.
So you can either rewrite your commits to use a different email address and force push over the existing commits or associate the given email address with your account in the GitHub settings (and verify that email address) if you want them to be associated with your username.
Upvotes: 2