UNKNOWN USER committed to my project - 2 commits by unknown user "ich123"

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
Username displayed as the committer for some reason: ich123

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)

*** HOWEVER, on this page you can clearly see “ich123” is the committer.
[You must click the link below in order to actually see user “ich123”; it’s not displaying on this inline part of the post]

// COMMAND LINE OUTPUT: git log of what I’m checking in

> git log
> commit 10dc48ad1a8283bcfa24b2f4fdc1876fbba3e02f (HEAD -> master)
> Author: My name <me@me.com>
> Date:   Sat May 22 21:45:58 2021 -0500
> 
>     complete chapter 2 and 3
> 
> commit bd5f41713cb0b961d240922cfbb9040154c69573
> Author: My name <me@me.com>
> Date:   Sat May 22 20:47:23 2021 -0500
> 
>     Initial Commit - Complete Chapter 1

// COMMAND LINE OUTPUT: pushing (this is the ONLY commit made on GitHub)

> git push -u origin master
> Username for 'https://github.com': mike200000000
> Password for 'https://mike200000000@github.com': 
> Enumerating objects: 7, done.
> Counting objects: 100% (7/7), done.
> Delta compression using up to 2 threads
> Compressing objects: 100% (6/6), done.
> Writing objects: 100% (7/7), 623 bytes | 311.00 KiB/s, done.
> Total 7 (delta 0), reused 0 (delta 0)
> To https://github.com/mike200000000/Story.git
>  * [new branch]      master -> master
> Branch 'master' set up to track remote branch 'master' from 'origin'.

Thank you to anyone that can explain what’s going on. Is this possibly a bug with GitHub ?

Best regards,
Mike

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.

1 Like

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!

1 Like