1
我有一个项目,其中我的开发分支是2稳定分支之前的标签发布,但我想删除第一个标记的更改集(这是我不再想要的一系列功能),但将最新的标记更改(第二个标记)应用到稳定标记上。Git rebase的标签,而不是单独提交
例如:
提交:
[tag] 3.0 -
sdaf213 Some Commit of the tag 3
sdaas34 Some other commit in this tag
[tag] 2.0 -
wert78 Some commit of tag 2
werg99 Another commit of tag 2
werh55 And another of tag 2
[tag] 1.0 (Stable) -
pry77 Commits of tag 1
...older commits
有没有办法与git变基上的标签,而不是承诺,这样我可以变基的[标签顶部[标签] 3.0的所有提交] 1.0,但排除[标签] 2.0中的所有内容?
git rebase --onto 1.0 2.0 BRANCH
哪里分公司要应用衍合你的分支的名字:
标签_are_(标识符)提交。您几乎总是可以使用标签而不是SHA – Useless 2013-04-10 16:18:13