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: 4 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 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)