Reputation: 29
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.
Upvotes: 1
Views: 2579
Reputation: 51093
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
?
git clone http://servername:8080/tfs/DefaultCollection/project/_git/reponame
git clone https://[email protected]/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
Then check your network setting, in case behind a proxy, try to test without proxy first.
You could clear TFS and VS cache, which may do the trick.
Upvotes: 0
Reputation: 1324178
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:
https.postbuffer
(git config --global http.postBuffer 524288000
), as seen here, or git config --global core.compression 1
).Upvotes: 2