r/github • u/Friendly-Implement95 • Mar 11 '25
Unknown person contribution on my GitHub repo
Okay so I have a personal repo it is public but only I can change to it Someone called sainish is apparently a contributer which I suerly don't know
No forks , no pulls , no issues Tried looking at git log didn't see any commit from him
Gone to setting collaborators even GitHub told me that I am the only person that can contribute to this repo
In insights I see he has 3 commits but when I pressed on them it shows nothing
It's very very confusing he isn't active on GitHub too I sender him an email asking
This is the repo https://github.com/Yui13KH/cpp-learning-journey
You could check it out
Any ideas ?
Note : I do use a desktop and a laptop one is windows and one is Linux bit it's the same account I doubt that's the reason
The repo is fully made from 0 I didn't use any template or anything not that I am aware of
2
u/Friendly-Implement95 Mar 11 '25
Is it possible to remove the commits ?
2
u/No-Amphibian5045 Mar 11 '25
Yes, using
git.Make a backup copy of your repos first.
In your terminal (any OS), run
git logto pull up a text log, orgit guiand Repository > Visualize main's History to pull up a graphical log. Note the hash of the commit before the first one you want to edit. (The log will also make it obvious which commits used the wrong email.)Run
git rebase -i <hash>. This will open a text editor with the history since <hash>.What you do next is a personal choice. At the bottom of the editor you can find instructions. Basically you change (or don't change) the word "pick" on each line to whichever command you want git to run. It will rebuild the branch's history according to these commands when you save and close the file.
git push --forcewhen you're satisfied.Note: this will not delete the commits from your disk or from Github's servers. Anyone with the hashes can still view them by their link. If you ever need to delete commits from Github for privacy/security/legal reasons, you need to also prune your local reflog and delete/recreate the Github repos. If there are forks, it's out of your hands.
92
2
u/Friendly-Implement95 Mar 11 '25
This is even more weirder I checked my other repos and apparently he also is on another personal repo
This time tho his commits are visible which makes me even more confused because I know when I wrote those myself not all of them
https://github.com/Yui13KH/Yuikiumi
I did have a previous GitHub account that got suspended for some reason for 4 month and I deleted but I didn't use it after that
This is really confusing could it be that my account hacked or something ( even that wouldn't make sense cause if he hacked my account it'd still look like I committed them )
5
u/ThunderChaser Mar 11 '25
You have one of your computer’s git clients misconfigured with the wrong email address. That wrong email address is registered to another GitHub account so GitHub believes it came from them.
7
u/RegenJacob Mar 11 '25
Do you use something like intellijs builtin git client to commit? It used to commit with random credentials in the past idk if this is still the case
6
u/TheTanadu Mar 11 '25
3 commits on Jan 5, I guess you used not your computer to edit it or you misconfigured git locally? Or as someone pointed out somewhere else you just copy and pasted someone's answer from StackOverflow and din't check what it'll do.
4
u/Ok_Risk8749 Mar 12 '25
Rumor has it Sainish quietly fixes bugs in repos and asks for nothing in return. You’ve been blessed by Sainish.
1
u/CuriousClicks Mar 14 '25
I bet you were " vibe coding "
1
u/Friendly-Implement95 Mar 15 '25
If by vibe coding u mean relying heavily on ai thankfully I don't do that much
Yeah I do ask ai to help me with my logic but once u have ur logic to solving the problem set down I might maybe ask it what types should I use maybe how to structure it But like not just go and be like
I have problem x , solve it to me
Well I mean u could open OOP APPLICATION And see the BankSystem.cpp in src I don't think u can make that big of a app with ai without it ducking it up even if it's just terminal
Have u seem the prime gen , Devin ai making a full web game and then a real game developer reviewed it and just shat on Devin :V
1
1
u/kohuept Mar 13 '25
have you ever configured your local git installation with a fake email address? GitHub uses the email on the commit to resolve what GitHub account made the commit, so if you enter some made up email that someone has a GitHub account with it'll show up as their commit. I once put [email protected] as my email and my commits showed up as coming from the GitHub user "pyvirus"
67
u/MattTheCuber Mar 11 '25
Go through the commits, I can see them there. Here's one: https://github.com/Yui13KH/cpp-learning-journey/commit/bfa1de9df9dfaedc39b4cd82bd9117fa6e616e7e
The commit messages match your style closely. I would guess you somehow committed under the wrong username. Either through
git config user.nameorgit commit --authoror some other means.