我使用https://stackoverflow.com/a/13710811/260865在一个 git repo 中获得了一个带有分支的 tfs repo,它适用于几个分支。但我无法初始化所有分支,因为:
"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 version 0.17.1.0 (TFS client library 11.0.0.0 (MS)) (32-bit) C:\tools\gittfs\git-tfs.exe
有人对此有解决方案吗?