https://stackoverflow.com/a/13710811/260865を使用して、1 つの git リポジトリにブランチを持つ tfs リポジトリを取得しましたが、いくつかのブランチで問題なく動作します。しかし、次の理由により、すべてのブランチを初期化できませんでした。
"C:\tmp\Main>git tfs branch --init --authors=C:\tmp\authors-file.txt $/someproject/Branches/7.2.0
The name of the local branch will be : Branches/7.2.0
error: The root changeset 26907 have not be found in the Git repository. The branch containing the changeset should not have been created. Please do it before retrying!!"
また
C:\tmp\Main>git tfs branch --init --authors=C:\tmp\authors-file.txt $/someproject/Releases/7.0.0.1
The name of the local branch will be : Releases/7.0.0.1
An unexpected error occured when trying to find the root changeset.
Failed to find root changeset for $/someproject/Releases/7.0.0.1 branch in $/someproject/Main branch
(名前が変更されたブランチの問題: https://github.com/git-tfs/git-tfs/pull/299 )
TFS によると、7.0.0.1 は Main の子ブランチです。
環境: git-tfs バージョン 0.17.1.0 (TFS クライアント ライブラリ 11.0.0.0 (MS)) (32 ビット) C:\tools\gittfs\git-tfs.exe
誰かがそれに対する解決策を持っていますか?