UNKNOWN USER committed to my project - 2 commits by unknown user "ich123" #21603
-
Summary: Someone other than myself seems to be listed as the “committer” of the only 2 commits committed on this project (test lesson tutorial project). I committed 2 commits (from the command line in Linux) and for some reason the system displays another user as the person that committed the files. I gave no permissions to anyone else. Me: mike200000000 I tried searching online for this specific username thinking it might be some sort of default or something, but I’m not finding anything. As you can see below, the push seemed to work and my project page only indicates 2 commits (the ones accomplished with the commands below) Why does “ich123” show up as the user that committed my files? *** See here there are only 2 commits (correctly showing mike200000000 as the owner) github.commike200000000/StoryMy masterpiece. Contribute to mike200000000/Story development by creating an account on GitHub. *** HOWEVER, on this page you can clearly see “ich123” is the committer. mike200000000/StoryMy masterpiece. Contribute to mike200000000/Story development by creating an account on GitHub. // COMMAND LINE OUTPUT: git log of what I’m checking in
// COMMAND LINE OUTPUT: pushing (this is the ONLY commit made on GitHub)
Thank you to anyone that can explain what’s going on. Is this possibly a bug with GitHub ? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
GitHub uses the author email in the commits to connect commits to an account, and it looks like that particular address you’re using is already associated with that other account you are seeing. To fix this, see Setting your commit email address - GitHub Docs for how to set up your mail address correctly. There’s also an option in case you want to keep your mail address private. Changing past commits requires rewriting history, unless you just want to discard the old commits and start over. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much ! That makes perfect sense. I did indeed choose an obscure non-existing email for myself on my local machine and that must be the reason. When I get back to my system I do development on I will implement what you suggested. I’m pretty certain that’s the answer. Thank you! |
Beta Was this translation helpful? Give feedback.
GitHub uses the author email in the commits to connect commits to an account, and it looks like that particular address you’re using is already associated with that other account you are seeing.
To fix this, see Setting your commit email address - GitHub Docs for how to set up your mail address correctly. There’s also an option in case you want to keep your mail address private. Changing past commits requires rewriting history, unless you just want to discard the old commits and start over.