Home > database >  Rebase my changes on top of another branch updates in Sublime Merge
Rebase my changes on top of another branch updates in Sublime Merge

Time:10-09

I cloned a Git repo/branch (origin/master). I made my changes and committed on another branch (mine) and I set another remote for it (office/mine). I did three commits actually.

Now there are updates on origin/master that I need to incorporate. I guess what I need is to rebase my changes on top of latest origin/master, but I'm not quite sure how to proceed.

I'm using Sublime Merge and I can't see that option or I'm not looking on the right menus.

CodePudding user response:

Here is how to replicate the command git rebase origin/master mine in Sublime Merge:

  • Check out the branch you want to rebase (mine).
  • In the "Commits" view (Ctrl 2 by default), right-click on the latest commit of the branch you want to rebase onto (origin/master).
  • Choose "Rebase mine onto origin/master".
  • Related