Does anybody know how to get all git repositories within an TFS 2013 TeamProjectCollection? Documentation is very poor for git related stuff.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Have you tried looking at Microsoft.TeamFoundation.Git.Client?
Some pseudo code
GitHttpClient client = new GitHttpClient("collectionurl", creds)
var gitRepos = client.GetRepositoriesAsync().Result
回答2:
The Web API's are apparently the correct (and better documented) approach. e.g.
GET http://mytfsserver:8080/tfs/defaultcollection/_apis/git/repositories
See: http://www.visualstudio.com/integrate/reference/reference-vso-git-repositories-vsi