I saw in
https://github.com/git-tfs/git-tfs/blob/master/doc/commands/clone.md this option:
--initial-branch=VALUE Passed to git-init (requires Git >= 2.28.0)
My git (git bash) --version: git version 2.37.1.windows.1
Running git tfs clone which gives me clone help, does not list this option. When I tried to use the option as
--initial-branch=main
when cloning a TFS repository-path called Main, rather than my getting a directory called Main, the directory was called "--initial-branch=main" :-(
And when going into it an running git status, I saw default branch was still called master.
Any idea if this is supposed to be supported? Also given a command like the following, where should that option be entered? is it in the correct location?
MSYS_NO_PATHCONV=1 git tfs clone
http://servertfs401:8080/tfs/defaultcollection "$/XXXX/Main"
--initial-branch=main --changeset 8840 --ignore-branches-regex=XXXX.Branches --ignore-regex="(Business Utilities|External Procedures)/"
Thanks,
Larry