git clone blah
git checkout -b development
git checkout -b bug581
hack hack
git checkout -b bug588
hack hack
哦,等等,錯誤588應該從發展萌芽,而不是581的Git,重訂不正確的分支的分支
git rebase --onto development bug581 bug588
給我:
Cannot rebase: You have unstaged changes.
Please commit or stash them.
錯了,但我不? git status顯示工作目錄是乾淨的。所以讓我們藏起來咯咯地笑。
git stash
git rebase --onto development bug581 bug588
確定現在它的工作原理,但其拉蟲581和588的歷史,我只想要588的歷史上,沒有什麼是581
見http://stackoverflow.com/questions/4673952/fixing-published-branch-與錯誤的父母分支 – NamshubWriter 2011-02-14 07:14:56