Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从分支大师开始并开发。我基于开发创建了分支 foo。7 次提交之后,现在我意识到我希望我能从 master 中脱颖而出。我可以挑选每个提交,没什么大不了的,但是有没有更巧妙的方法?
试试这个。foo如果它是当前签出的分支,您可以省略。
foo
git rebase --onto master develop foo