Login failed when trying to perform git push to Azure DevopsWhen do you use git rebase instead of git merge?Default behavior of “git push” without a branch specifiedUndo a Git merge that hasn't been pushed yetWhat are the differences between “git commit” and “git push”?How do I push a new local branch to a remote Git repository and track it too?Message 'src refspec master does not match any' when pushing commits in GitHow do you push a tag to a remote repository using Git?How do I properly force a Git push?Git push rejected after feature branch rebaseHow do I disable Git Credential Manager for Windows?

Did Joe Biden "stop a prosecution" into his son in Ukraine? And did he brag about stopping the prosecution?

What makes a character irredeemable?

Where does the image of a data connector as a sharp metal spike originate from?

What's the correct way to determine turn order in this situation?

Job interview by video at home and privacy concerns

The difference of Prime in Solve doesn't work

Should I be an author on another PhD student's paper if I went to their meetings and gave advice?

What does a textbook look like while you are writing it?

Citing CPLEX 12.9

Avoiding dust scattering when you drill

GPLv3 forces us to make code available, but to who?

Duck, duck, gone!

Why is there such a singular place for bird watching?

Decision Variable Value from a Set (Gurobi)

IEEE 754 square root with Newton-Raphson

What is the difference between increasing volume and increasing gain?

Giving a good fancy look to a simple table

Rank-one positive decomposition for a entry-wise positive positive definite matrix

Do jackscrews suffer from blowdown?

Lighthouse Alternatives

Does the 'java' command compile Java programs?

Can a passenger predict that an airline or a tour operator is about to go bankrupt?

Realistically, how much do you need to start investing?

Normalize and describe string content



Login failed when trying to perform git push to Azure Devops


When do you use git rebase instead of git merge?Default behavior of “git push” without a branch specifiedUndo a Git merge that hasn't been pushed yetWhat are the differences between “git commit” and “git push”?How do I push a new local branch to a remote Git repository and track it too?Message 'src refspec master does not match any' when pushing commits in GitHow do you push a tag to a remote repository using Git?How do I properly force a Git push?Git push rejected after feature branch rebaseHow do I disable Git Credential Manager for Windows?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2















I am on a Windows 10 machine, and this morning my git credentials were working as expected, and I was busy pushing and pulling code to our Azure Devops project.
Now I cannot, from this specific VM anyways. When I do git pull I get the standard MS authentication prompt, and I can see my MS account (which is connected to windows via our federated AD)



enter image description here
I click on my account, and the prompt goes away, and I get an error in my prompt:



Logon failed, use ctrl+c to cancel basic credential prompt.
Password for 'https://myOrg@dev.azure.com':



If I enter my AD password (or anything else) I get a authentication failed message. I also tried to re-enter my credentials by selecting "Use another account" in the MS sign in window, and I get the same results.



I have seen issues that were solved by removing the cached credentials from the Credential Manager. So I go Control Panel -> Credential Manager and remove all of the credentials that are stored and try the git operation again.



I get the same MS login window, and oddly enough my account is still there, and Connected to windows (and fails the same way when I click on it)



So then I removed my accounts that were associated via Settings -> Accounts -> Access work or school. I could see my MS account there, so that looked promising, but same behaviour.
I tried to update git (it is v2.21.0.windows.1)
I also installed microsoft's git credential manager as per some answers that I found on SO and microsoft's forums.
Still getting the same error.



I rebooted and removed all the credentials/accounts again, then tried from Visual Studio instead of calling git from the command line.



Same error!



My next steps are to rebuild my Windows profile which I am hoping will reset all this stuff. I am able to access the site from another VM, so it seems to be some sort of git configuration/cached credentials on this machine.



Any assistance/ideas are appreciated.










share|improve this question
























  • switch to ssh key?

    – 4c74356b41
    Mar 28 at 21:11











  • you mentioned VM and federated AD, do you have any proxy / global proxy in your way?

    – M.Sahbi
    Mar 29 at 15:59

















2















I am on a Windows 10 machine, and this morning my git credentials were working as expected, and I was busy pushing and pulling code to our Azure Devops project.
Now I cannot, from this specific VM anyways. When I do git pull I get the standard MS authentication prompt, and I can see my MS account (which is connected to windows via our federated AD)



enter image description here
I click on my account, and the prompt goes away, and I get an error in my prompt:



Logon failed, use ctrl+c to cancel basic credential prompt.
Password for 'https://myOrg@dev.azure.com':



If I enter my AD password (or anything else) I get a authentication failed message. I also tried to re-enter my credentials by selecting "Use another account" in the MS sign in window, and I get the same results.



I have seen issues that were solved by removing the cached credentials from the Credential Manager. So I go Control Panel -> Credential Manager and remove all of the credentials that are stored and try the git operation again.



I get the same MS login window, and oddly enough my account is still there, and Connected to windows (and fails the same way when I click on it)



So then I removed my accounts that were associated via Settings -> Accounts -> Access work or school. I could see my MS account there, so that looked promising, but same behaviour.
I tried to update git (it is v2.21.0.windows.1)
I also installed microsoft's git credential manager as per some answers that I found on SO and microsoft's forums.
Still getting the same error.



I rebooted and removed all the credentials/accounts again, then tried from Visual Studio instead of calling git from the command line.



Same error!



My next steps are to rebuild my Windows profile which I am hoping will reset all this stuff. I am able to access the site from another VM, so it seems to be some sort of git configuration/cached credentials on this machine.



Any assistance/ideas are appreciated.










share|improve this question
























  • switch to ssh key?

    – 4c74356b41
    Mar 28 at 21:11











  • you mentioned VM and federated AD, do you have any proxy / global proxy in your way?

    – M.Sahbi
    Mar 29 at 15:59













2












2








2


1






I am on a Windows 10 machine, and this morning my git credentials were working as expected, and I was busy pushing and pulling code to our Azure Devops project.
Now I cannot, from this specific VM anyways. When I do git pull I get the standard MS authentication prompt, and I can see my MS account (which is connected to windows via our federated AD)



enter image description here
I click on my account, and the prompt goes away, and I get an error in my prompt:



Logon failed, use ctrl+c to cancel basic credential prompt.
Password for 'https://myOrg@dev.azure.com':



If I enter my AD password (or anything else) I get a authentication failed message. I also tried to re-enter my credentials by selecting "Use another account" in the MS sign in window, and I get the same results.



I have seen issues that were solved by removing the cached credentials from the Credential Manager. So I go Control Panel -> Credential Manager and remove all of the credentials that are stored and try the git operation again.



I get the same MS login window, and oddly enough my account is still there, and Connected to windows (and fails the same way when I click on it)



So then I removed my accounts that were associated via Settings -> Accounts -> Access work or school. I could see my MS account there, so that looked promising, but same behaviour.
I tried to update git (it is v2.21.0.windows.1)
I also installed microsoft's git credential manager as per some answers that I found on SO and microsoft's forums.
Still getting the same error.



I rebooted and removed all the credentials/accounts again, then tried from Visual Studio instead of calling git from the command line.



Same error!



My next steps are to rebuild my Windows profile which I am hoping will reset all this stuff. I am able to access the site from another VM, so it seems to be some sort of git configuration/cached credentials on this machine.



Any assistance/ideas are appreciated.










share|improve this question














I am on a Windows 10 machine, and this morning my git credentials were working as expected, and I was busy pushing and pulling code to our Azure Devops project.
Now I cannot, from this specific VM anyways. When I do git pull I get the standard MS authentication prompt, and I can see my MS account (which is connected to windows via our federated AD)



enter image description here
I click on my account, and the prompt goes away, and I get an error in my prompt:



Logon failed, use ctrl+c to cancel basic credential prompt.
Password for 'https://myOrg@dev.azure.com':



If I enter my AD password (or anything else) I get a authentication failed message. I also tried to re-enter my credentials by selecting "Use another account" in the MS sign in window, and I get the same results.



I have seen issues that were solved by removing the cached credentials from the Credential Manager. So I go Control Panel -> Credential Manager and remove all of the credentials that are stored and try the git operation again.



I get the same MS login window, and oddly enough my account is still there, and Connected to windows (and fails the same way when I click on it)



So then I removed my accounts that were associated via Settings -> Accounts -> Access work or school. I could see my MS account there, so that looked promising, but same behaviour.
I tried to update git (it is v2.21.0.windows.1)
I also installed microsoft's git credential manager as per some answers that I found on SO and microsoft's forums.
Still getting the same error.



I rebooted and removed all the credentials/accounts again, then tried from Visual Studio instead of calling git from the command line.



Same error!



My next steps are to rebuild my Windows profile which I am hoping will reset all this stuff. I am able to access the site from another VM, so it seems to be some sort of git configuration/cached credentials on this machine.



Any assistance/ideas are appreciated.







git azure-devops azure-active-directory






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 21:10









Brandon McClureBrandon McClure

4893 silver badges19 bronze badges




4893 silver badges19 bronze badges















  • switch to ssh key?

    – 4c74356b41
    Mar 28 at 21:11











  • you mentioned VM and federated AD, do you have any proxy / global proxy in your way?

    – M.Sahbi
    Mar 29 at 15:59

















  • switch to ssh key?

    – 4c74356b41
    Mar 28 at 21:11











  • you mentioned VM and federated AD, do you have any proxy / global proxy in your way?

    – M.Sahbi
    Mar 29 at 15:59
















switch to ssh key?

– 4c74356b41
Mar 28 at 21:11





switch to ssh key?

– 4c74356b41
Mar 28 at 21:11













you mentioned VM and federated AD, do you have any proxy / global proxy in your way?

– M.Sahbi
Mar 29 at 15:59





you mentioned VM and federated AD, do you have any proxy / global proxy in your way?

– M.Sahbi
Mar 29 at 15:59












2 Answers
2






active

oldest

votes


















0
















Try disconnecting from the team server.



enter image description here



Then try redoing your commit from the Team Explorer window, reconnecting if required.






share|improve this answer
































    0
















    I had this issue when moving my DevOps organisation to a different tenant. The only thing that resolved my issue was to remove the tenant.cache file from the GitCredManager, see:




    If you use Visual Studio or the Git command-line tool, you might need to clear the cache for the Git Credential Manager.
    Deleting the %LocalAppData%GitCredentialManagertenant.cache file on each client machine resolves the issue.




    from https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/connect-organization-to-azure-ad?view=azure-devops






    share|improve this answer


























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406885%2flogin-failed-when-trying-to-perform-git-push-to-azure-devops%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0
















      Try disconnecting from the team server.



      enter image description here



      Then try redoing your commit from the Team Explorer window, reconnecting if required.






      share|improve this answer





























        0
















        Try disconnecting from the team server.



        enter image description here



        Then try redoing your commit from the Team Explorer window, reconnecting if required.






        share|improve this answer



























          0














          0










          0









          Try disconnecting from the team server.



          enter image description here



          Then try redoing your commit from the Team Explorer window, reconnecting if required.






          share|improve this answer













          Try disconnecting from the team server.



          enter image description here



          Then try redoing your commit from the Team Explorer window, reconnecting if required.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 27 at 8:46









          SeanSean

          7,9089 gold badges58 silver badges90 bronze badges




          7,9089 gold badges58 silver badges90 bronze badges


























              0
















              I had this issue when moving my DevOps organisation to a different tenant. The only thing that resolved my issue was to remove the tenant.cache file from the GitCredManager, see:




              If you use Visual Studio or the Git command-line tool, you might need to clear the cache for the Git Credential Manager.
              Deleting the %LocalAppData%GitCredentialManagertenant.cache file on each client machine resolves the issue.




              from https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/connect-organization-to-azure-ad?view=azure-devops






              share|improve this answer





























                0
















                I had this issue when moving my DevOps organisation to a different tenant. The only thing that resolved my issue was to remove the tenant.cache file from the GitCredManager, see:




                If you use Visual Studio or the Git command-line tool, you might need to clear the cache for the Git Credential Manager.
                Deleting the %LocalAppData%GitCredentialManagertenant.cache file on each client machine resolves the issue.




                from https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/connect-organization-to-azure-ad?view=azure-devops






                share|improve this answer



























                  0














                  0










                  0









                  I had this issue when moving my DevOps organisation to a different tenant. The only thing that resolved my issue was to remove the tenant.cache file from the GitCredManager, see:




                  If you use Visual Studio or the Git command-line tool, you might need to clear the cache for the Git Credential Manager.
                  Deleting the %LocalAppData%GitCredentialManagertenant.cache file on each client machine resolves the issue.




                  from https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/connect-organization-to-azure-ad?view=azure-devops






                  share|improve this answer













                  I had this issue when moving my DevOps organisation to a different tenant. The only thing that resolved my issue was to remove the tenant.cache file from the GitCredManager, see:




                  If you use Visual Studio or the Git command-line tool, you might need to clear the cache for the Git Credential Manager.
                  Deleting the %LocalAppData%GitCredentialManagertenant.cache file on each client machine resolves the issue.




                  from https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/connect-organization-to-azure-ad?view=azure-devops







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 28 at 13:48









                  CastrohengeCastrohenge

                  5,3655 gold badges27 silver badges51 bronze badges




                  5,3655 gold badges27 silver badges51 bronze badges































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406885%2flogin-failed-when-trying-to-perform-git-push-to-azure-devops%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript