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