Can't pull or push with Team Explorer in Visual Studio 2017

前端 未结 4 1817
别跟我提以往
别跟我提以往 2020-12-10 21:02

I use Git with Visual Studio 2017. Since yesterday every time I try to push or pull from the remote repository with Team Explorer I get the following error:

         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 21:35

    I have had this issue with my team on several different machines with several different users. We solved it with a single git command that sets the windows credentials globally to the credential.helper explained here

    git config --global credential.helper wincred
    

    After we fired off the above command, all clones, pushes and pulls worked like a charm. You would just have to make sure that the credentials you have stored in Windows Credentials are the ones that you want to use.

提交回复
热议问题