0

The git-tfs tool allows you to clone TFS branches to Git repositories. One way of displaying the available TFS branches is to use the git-tfs list-remote-branches command, which (at the end) states: "Cloning root branches (marked by [*]) is recommended!"

Simply put, why? I don't see any particular benefit in cloning root branches... what if you want to clone a child branch? What's so good about root branches?

4

1 に答える 1

0

OK、私は自分の質問に対する答えを見つけたと思います。

ルート ブランチを複製すると、git-tfsすべての子ブランチも複製されます (これがルート ブランチが推奨される理由です) - ただし、デフォルトでは git リポジトリで初期化されません! --with-branchesこれを行うには、パラメータを指定する必要があります。次に、コマンドを実行すると、ルート ブランチとそのすべての子ブランチがチェックアウト後に初期化されますgit branch

于 2015-08-24T20:58:42.063 に答える