I always push my commits as a account stsushi, but my commits always end up on github under another account. Anyone understand why?
Asked
Active
Viewed 108 times
1
-
did you have multiple accounts ? – Talha Rahman Mar 14 '19 at 04:58
-
i think you have multiple account BPS-1 is you another account and you have config your email of that account in you system just change your email in system its store in .gitconfig file you git config command to update your email . – Talha Rahman Mar 14 '19 at 05:02
-
if it helps please let me know i will post on answer. – Talha Rahman Mar 14 '19 at 05:03
-
What is result of `git log` in your local repo? – cgcgbcbc Mar 14 '19 at 05:03
-
Thanks, I was using a school computer, and didn't realize i had a git config global user stored in my vm – BPS-1 Mar 14 '19 at 06:26
-
https://stackoverflow.com/search?q=%5Bgithub%5D+commit+different+account – phd Mar 14 '19 at 09:18
1 Answers
0
You have two accounts on GitHub
Right now git configured with email of BPS-1 in you system.
just configure your desire email
Like
git config --global user.email "email@example.com"
Hope it will help you. Happy Coding..!

Talha Rahman
- 720
- 4
- 12
- 27