我们需要使用 git p4 将多个分支迁移到 git。
我们能够迁移,但它仅在 bitbucket 上创建主分支。但我们需要迁移所有分支。 Git fusion 不可用并且已经过时了。
我们正在从 p4 迁移到 bitbucket。期望是使用 git p4 迁移多个分支
git-p4 仅能推断位于目录树中同一级别的分支。例如
depot
|
-main
|
-v1.0
|
-v1.2
git p4 sync --detect-branches "//depot@all"
如果分支处于不同级别,那么您需要为每个分支运行 git-p4。
depot
|
-main
|
branches
|
-v1.0
|
-v1.2
git p4 sync --branch=main "//depot/main@all"
git p4 sync --branch=v1.0 "//depot/branches/v1.0@all"
git p4 sync --branch=v1.2 "//depot/branches/v1.2@all"