Github shows name instead of a linked username in commits

前端 未结 4 925
囚心锁ツ
囚心锁ツ 2021-01-01 10:59

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

相关标签:
4条回答
  • 2021-01-01 11:25

    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

    0 讨论(0)
  • 2021-01-01 11:43

    Run this in Terminal:

      git config --global user.name "your-github-username"
      git config --global user.email "your-github-email"
    
    0 讨论(0)
  • 2021-01-01 11:49

    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.

    0 讨论(0)
  • 2021-01-01 11:49

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

    0 讨论(0)
提交回复
热议问题