My commits aren't being attributed to my account #24008
-
Hi, I looked at my recent commits in some of my repos and noticed that Github has not been linking my account with the commits I make. Instead it identifies the author of the commits with my name (not a clickable username). I am unable to interact with the connection to my account. This has led me to believe that Github is using some sort of default UI element and not actually linking my work to my account. Does anybody else have this issue? How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
some pictures for context: |
Beta Was this translation helpful? Give feedback.
-
Here it was when it worked: |
Beta Was this translation helpful? Give feedback.
-
I fixed my issue by changing the user.name variable on my local git. I am wondering now: how can I go back and claim the commits I made earlier under a different username? |
Beta Was this translation helpful? Give feedback.
-
Hey there @cybertheory and welcome! Each Git commit has an associated e-mail address. It’s set using GitHub will attribute a commit to you if you have the e-mail address used for the commit in your account. You can add any e-mail address at any time to your account to retroactively correct commit attribution from past commits. |
Beta Was this translation helpful? Give feedback.
Hey there @cybertheory and welcome!
Each Git commit has an associated e-mail address. It’s set using
git config —global user.email
I believe.GitHub will attribute a commit to you if you have the e-mail address used for the commit in your account. You can add any e-mail address at any time to your account to retroactively correct commit attribution from past commits.
Read more on that here.