【发布时间】:2020-01-19 12:13:31
【问题描述】:
我有几个多模块项目,我必须迁移到 git 并从中生成一个父聚合器项目。 svn 上的项目在 svn 上有不同的命名约定,我想重命名分支以使其在代码结构中成为标准。
ex- project1
branches - project1_121
213
project1_454
project2
branches - project2_121
project2_213
project2_454
我想重命名这些分支,以便在多个项目中使用一个通用编号。分支应该以这样的方式重命名
project1_121 and project_121 will become 121.
我执行的步骤:
git svn clone "svn url"
now i want to change the branch name:
so for that i need to checkout the branches and rename. As i have hundreds of branches in each proect. Is there any alternative to do it easily and in a less error prone way.
【问题讨论】: