How to rebase in git
Git rebase allows us to move a sequence of commits to a new base commit.
Following are the steps you can use to rebase
git fetch
to sync git with origin.git rebase [base branch/commit]
- Resolve any conflicts if exists
- to continue rebase after conflicts
git rebase --continue
- to abort rebase
git rebase --abort
- once done, to force update origin
git push origin +[branch name]