Reputation: 522
Right now the main branch has the commit order 1,3,4. with 2 being a separate commit from 1. I need the order to be 1, 2, 3, 4. How do I do it? I'm unable to figure out how to use rebase over here. Thanks for the help
Upvotes: 0
Views: 87
Reputation: 37742
You need a simple git rebase
:
git checkout sumant # your current branch
git rebase origin/master
NOTES:
origin/master
with c0fbd68
... it all points to the same commit :)git
does what it can, but cannot resolve all conflicts automatically.Upvotes: 3