简体   繁体   English

gfs中的git子树/子模块等效?

[英]git subtree/submodule equivalent in tfs?

Does anyone know whether TFS has similar function likes git subtree or submodule? 有谁知道TFS是否有类似的功能,如git子树或子模块?

That is one repository contains sub-repositories. 这是一个包含子存储库的存储库。


I rewrite my question in other words: 换句话说,我改写了我的问题:

  1. We knew git has ability to combine/reference other repo in current repo via subtree/submodule function. 我们知道git能够通过子树/子模块功能在当前repo中组合/引用其他repo。
  2. Does TFVC has same function likes git ? TFVC是否具有与git相同的功能?

Answer: @starain-msft said, submodule isn't supported in TFVC 答: @ starain-msft说,TFVC不支持子模块

The Only Solution I found useful for you is : Git-TFS 我发现对您有用的唯一解决方案是: Git-TFS

git-tfs is a two-way bridge between TFS (Team Foundation Server) and git, similar to git-svn. git-tfs是TFS(Team Foundation Server)和git之间的双向桥梁,类似于git-svn。 It fetches TFS commits into a git repository, and lets you push your updates back to TFS. 它将TFS提交提取到git存储库中,并允许您将更新推送回TFS。

The TFS supports Git version control too, you can push your local repository with subtree or submodule to a Git repository in TFS. TFS也支持Git版本控制,您可以将带有子树或子模块的本地存储库推送到TFS中的Git存储库。

Some articles: 一些文章:

Git and Team Services Git和团队服务

One TFS Build, Multiple Git Repositories with Submodules 一个TFS构建,带子模块的多个Git存储库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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