0

Reading this doc I got an impression that I should be able to use git-tfs to get the contents of a TFS repo in order to clone some branches: https://github.com/git-tfs/git-tfs/blob/master/doc/usecases/manage_tfs_branches.md

Tried these commands:

C:\Workspace.Git\Corp>git tfs list-remote-branches https:/scm.domain.com:8443/tfs
Given tfs name is not correct URI and not found as a registered TFS instance

C:\Workspace.Git\Corp>git tfs list-remote-branches https:/scm.domain.com:8443/tfs/DefaultCollection
Given tfs name is not correct URI and not found as a registered TFS instance

C:\Workspace.Git\Corp>git tfs list-remote-branches scm.domain.com
Given tfs name is not correct URI and not found as a registered TFS instance

where https:/scm.domain.com:8443/tfs is the server address which I use in Visual Studio 2012 to connect to TFS. It has DefaultCollection with several projects.

What is wrong with the server name I am supplying?

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
ajeh
  • 2,652
  • 2
  • 34
  • 65

1 Answers1

1

You are using the wrong url, lack of / and the collection name. Try this:

git tfs list-remote-branches https://scm.domain.com:8443/tfs/DefaultCollection 

Will get the info like below screenshot enter image description here

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62