I used https://stackoverflow.com/a/13710811/260865 to get a tfs repo with branches in one git repo and it works fine for a couple of branches. But I wasn't able to init all branches because of:
"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!!"
or
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
(renamed branch issue: https://github.com/git-tfs/git-tfs/pull/299)
TFS says that 7.0.0.1 is a child branch of Main.
Environment: git-tfs version 0.17.1.0 (TFS client library 11.0.0.0 (MS)) (32-bit) C:\tools\gittfs\git-tfs.exe
Has someone a solution for that?