How to rebase in git

How to rebase in git

Anton
AntonJul 8, 2020

Git rebase allows us to move a sequence of commits to a new base commit.

Following are the steps you can use to rebase

  1. git fetch to sync git with origin.
  2. git rebase [base branch/commit]
  3. Resolve any conflicts if exists
  4. to continue rebase after conflicts git rebase --continue
  5. to abort rebase git rebase --abort
  6. once done, to force update origin git push origin +[branch name] 

Prev Post

SASS

Next Post

Essential Git Command’s

Related Articles