enter image description here

enter image description here

Originally my commits would just say "Username committed...", but now they say "Username authored and committed...", and it appears gray and no longer lists me as a contributor. It lists me as both the committer and author and shows a default image instead of my profile pic.

  • Some more information might be helpful: Where are you committing from? The Web UI, GitHub Desktop, or the command line? Do you know whether you are committing via SSH or HTTPS? Also, when you say "Username authored and committed..." does it actually say "Username", or your username (maybe better expressed as "[my username]")? Also, when did this change happen? Is it on some repositories and not others? – waterproof Dec 29 '18 at 22:59
  • You may find this useful: help.github.com/articles/… – waterproof Dec 29 '18 at 23:02

Each Git commit has two user names associated with it, the "author" and the "committer". Usually they are the same (in which case Github shows "X committed"), but they might be different if one user amends or rebases a commit originally created by another user.

In Github, usernames show up grey if the email address is not associated with an existing Github user. You can check the email addresses associated with the commit by running git show <commit-id> on the command line - I'm not sure if there's a way to do it from the Github web interface.

One reason this might happen is that your email address is set incorrectly in Git on the computer you're working on. From Github's Setting your commit email address in Git article:

  1. Open Terminal.
  2. Set an email address in Git. You can use your GitHub-provided no-reply email address or any email address.

    git config --global user.email "email@example.com"
  3. Confirm that you have set the email address correctly in Git:

    git config --global user.email
  4. Add the email address to your GitHub account by setting your commit email address on GitHub, so that your commits are attributed to you and appear in your contributions graph.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.