Alexei Boronine
Alexei Boronine

Reputation: 11111

Github shows name instead of a linked username in commits

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

Answers (5)

Mohammadreza Abdoli
Mohammadreza Abdoli

Reputation: 1048

you can check the GitHub article:

$ git config --global user.name "example"

$ git config --global user.email "[email protected]"

Upvotes: 0

Jörg W Mittag
Jörg W Mittag

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

Vincent Scheib
Vincent Scheib

Reputation: 18600

Add the email used in the git commits to github via Account Settings: Email Settings

Upvotes: 9

Sevenate
Sevenate

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

Shaun
Shaun

Reputation: 321

Run this in Terminal:

  git config --global user.name "your-github-username"
  git config --global user.email "your-github-email"

Upvotes: 10

Related Questions