Heatblast
Heatblast

Reputation: 65

Github shows another commiter name than my username

Unknow user's commit

Hello, I have created a repo in vscode and linked my local repo with github and whenever i commit in my project and push those commits to github, it shows someone with name pp123456 have commited, but not my github username. Why is this happening ? pls help me. My github username is Crystal-99. If you see in my profile , whatever repos are present all are commited by this pp123456 but not Crystal-99. Please help.

Upvotes: 0

Views: 2419

Answers (2)

yamini
yamini

Reputation: 21

You can also edit your git user name in .gitconfig file.

You can find the file in : C:\Users\Your_User --> .gitconfig file change your name and email id and save it.

Upvotes: 1

Vadik Sirekanyan
Vadik Sirekanyan

Reputation: 4672

Github shows username based on author's email. Check both local and global emails:

git config --global user.email
git config --local user.email

I've checked your repositories on Github, the email addresses are different for different repositories.

To set new local values:

git config --local user.name "your name here"
git config --local user.email "your email here"

Upvotes: 2

Related Questions