0
我分支master
作出feature
。然后我分支feature
做出feature2
。现在我想获得全部的变更为master
。我怎么做?我想我会这样做:Git:我应该如何将分支和分支分支变更为主分支?
git rebase master feature #to make sure history is linear
git rebase feature feature2 #to make sure history is linear
git checkout feature
git merge feature2 --ff-only
git checkout master
git merge feature --ff-only
这会做诡计吗?我希望我的历史是线性的,因为我使用的是git-svn,而且我听到非线性历史记录混淆了它。