Click here to Skip to main content
15,867,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was trying to create a little repository for code samples so I created an account at GIT hub. I have VS 2015 so I had to install GIT Hub extension to it. When I push the code from VS2015, I see that it is pushed under my another account with different email which has absolutely nothing to do with GIT. Is there a way to ensure that GIT pushes are done using same mail/account as I used to create GIT hub account?

What I have tried:

I explored GIT Hub's web dashboard and under commit history I see a name which I never gave to GIT. I know the name but am not using it for GIT. I cannot find any such setting on VS either. I have not signed in to VS either so even that could not be it.
Posted
Updated 6-Jul-22 3:45am
Comments
Richard MacCutchan 6-Jul-22 9:29am    
If the GIT settings are not in the main settings of Visual Studio you should check the documentation for the extension.
dan!sh 6-Jul-22 9:44am    
It was a "and you think you are an explorer" moment. There is a little settings button on team explorer window. There I could set global settings for GIT. This extension had sneaked and picked up my windows email. Thanks for tip!

1 solution

Setting on team explorer window allowed me to edit the email and user details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900