Home > Blockchain >  GIT Hub using different accounts to push
GIT Hub using different accounts to push

Time:07-09

I am using Visual Studio 2015 with GIT Hub extension. I created an account on GIT hub using my personal email ([email protected]). When I see the push records from Visual Studio, it is using my other email ([email protected]) which I use for Office products. This account has nothing to do with GIT or GITHUB or VS or anything else which could be related to this action. There are no issues with the push itself but I am surprised that GIT is using a completely unrelated account to push code.

Is there a way to ensure that GIT does not use any other account of mine to do any of its actions?

Update:

  1. I created account on GIT hub website using [email protected]
  2. I opened VS 2015 (not signed in) and downloaded the extension for GIT HUB
  3. I used Team -> Manage connections to connect to source control.
  4. Connect to GIT HUB using same username and password as I did on GIT HUB website.
  5. Created a new solution, committed and pushed it.
  6. Push was done using name and email same as the one I use in outlook which is [email protected]. And has nothing to do with GIT
  7. In visual studio's team explorer, I see the name I use in outlook and on mouse hover I see the email I set up in outlook.
  8. In GIT Hub's web dashboard, I see under commit history the name I use in outlook and nothing else. No collaborators, nothing. This name was not explicitly made known to GIT HUB.

CodePudding user response:

I found the settings page under GIT HUB extension which had sneakily picked up my Windows details. I corrected it now and hopefully that will work.

P.S. How do I close the question for answers now?

  • Related