Reputation: 11111
I just helped a friend to set up a Github account to collaborate on my project. His commits come through, but for some reason on the "Source" page of my repository next to his commit is only his name and not his username (with a link).
It seems strange, since Github obviously recognizes him (I added him to the list of collaborators etc.
Seems like a stupid question, but Google couldn't help.
Thanks!
Upvotes: 33
Views: 25152
Reputation: 1048
you can check the GitHub article:
$ git config --global user.name "example"
$ git config --global user.email "[email protected]"
Upvotes: 0
Reputation: 369438
Does your friend have the e-mail address he is using for his commits correctly set up as an alias in GitHub? Otherwise, how is GitHub to know who he is? Git itself only records the full name and the e-mail address and obviously not the GitHub username, since you can use Git perfectly fine without GitHub.
Upvotes: 29
Reputation: 18600
Add the email used in the git commits to github via Account Settings: Email Settings
Upvotes: 9
Reputation: 6475
Just ask your friend to add email that he use in local git commits to his GitHub account emails list as stated in GitHub Help
Upvotes: 0
Reputation: 321
Run this in Terminal:
git config --global user.name "your-github-username"
git config --global user.email "your-github-email"
Upvotes: 10