Unknown Name Appearing On Commits Of My Repository #58240
-
Select Topic AreaBug Feature AreaIssues BodyI encountered an issue where, after pushing code to my repository using my GitHub account, I noticed that the commits displayed someone else's name instead of mine. I have no knowledge of this individual and did not authorise them to make changes or commit code under my account. This situation raises concerns about the security and integrity of my repository. I am seeking assistance in resolving this issue and ensuring that my commits accurately reflect my identity. i used command Guidelines |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
|
Hey how's it going? this problem can occur if you use a shared computer (at a college for example) this happens because the person has the credentials saved on the machine you used. When this occurs, your commits end up becoming that person's commits in your repository, you can correct this by going to credentials and removing the person's github access, then logging in with your github in the terminal, type:
If it didn't work that way, see if you added that person as a contributor (that way he has access to change some defined files) |
Beta Was this translation helpful? Give feedback.
-
|
Hi, So now i re-updated my name and email Not sure what was the issue I appreciate you help, |
Beta Was this translation helpful? Give feedback.
-
Hey man!! |
Beta Was this translation helpful? Give feedback.
-
|
Thnk u @mujibsayyad @Gustavonn07 |
Beta Was this translation helpful? Give feedback.
-
|
Hey everyone, I just encountered this on a project. I understand the fix, but does anyone understand why this happened? This is absolutely bizarre behavior |
Beta Was this translation helpful? Give feedback.
-
|
Hey everyone! |
Beta Was this translation helpful? Give feedback.
-
|
try changing global username and global email id or try author one git
commit --amend --author="Your Correct Name ". someone once told me they
deleted smtg everything just got right.
Hope everything works out
regards
anika
…On Sun, 29 Mar 2026 at 14:16, zyrey ***@***.***> wrote:
Hello! Did you ever resolve this issue? The same thing is happening to me
and from the same account
—
Reply to this email directly, view it on GitHub
<#58240?email_source=notifications&email_token=A46BDIJJMGMIUAEEYAG6RRD4TDPFHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNRTGY2DOMBXUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-16364707>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A46BDIOFT5OJEWDMTYSWFVL4TDPFHAVCNFSM6AAAAACXEUTUYWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMMZWGQ3TANY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.

Hey how's it going? this problem can occur if you use a shared computer (at a college for example) this happens because the person has the credentials saved on the machine you used.
When this occurs, your commits end up becoming that person's commits in your repository, you can correct this by going to credentials and removing the person's github access, then logging in with your github in the terminal, type:
git config --global user.name (your username)git config --global user.email (your email)If it didn't work that way, see if you added that person as a contributor (that way he has access to change some defined files)