简体   繁体   中英

Getting the Fatal Error while cloning the Project from the TFS through Visual Studio 2019

Getting the Fatal Error while cloning the project from the TFS using Visual Studio 2019

在此处输入图像描述

I have tried by updating the Git and VS 2019 with the latest versions. Still getting the same issue. Please help to solve this issue. Thanks in advance.

The problem is, on TFS side , you cannot really change the version of Git used.

Try cloning it through command line first, before opening it in VS 2019.

In that command line, try:

  • raising https.postbuffer ( git config --global http.postBuffer 524288000 ), as seen here , or
  • changing the compression level ( git config --global core.compression 1 ).

Update

Please double check your url. Make sure you are using on-premise TFS/Azure DevOps url not cloud Azure DevOps Service.

Your url looks a little wired:

http://xxx.azure.com:8080/tfs/DefaulCollection

Did you sever name is xxx.azure.com ?

  • For TFS and Azure DevOps url should be:

git clone http://servername:8080/tfs/DefaultCollection/project/_git/reponame

  • For Azure DevOps Service (previous name VSTS) should be:

git clone https://patricklu@dev.azure.com/patricklu/project/_git/reponame


According to your description and screenshot, seems you were getting error when you click "Clone this repository" button in Visual Studio 2019.

Suggest your first check if you are able to directly access git repo in web portal .

To narrow down the issue, you could use git command line to clone the repo instead of Visual Studio.

git clone https://dev.azure.com/fabrikam/DefaultCollection/_git/Fabrikam

  • If you could not do this both from Visual Studio and Command line. Also not able to access the repo.

Then check your network setting, in case behind a proxy, try to test without proxy first.

  • If others all work properly, only fail with Visual Studio 2019.

You could clear TFS and VS cache , which may do the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM