Move the current branch’s commits to the tip of <new-base>, which can be either a branch name or a commit ID.
git rebase <new-base>
Perform an interactive rebase and select actions for each commit.
git rebase -i <new-base>
Add staged changes to the most recent commit instead of creating a new one
git commit --amend
Continue a rebase after amending a commit.
git rebase --continue
Abandon the current interactive rebase and return the repository to its former state.
git rebase --abort
Force a merge commit even if Git could do a fast-forward merge.
git merge --no-ff <branch-name>
Rebasing