The git rebase command allows you to easily change a series of commits, modifying the history of your repository. You can reorder, edit, or squash commits together. Typically, you would use git rebase to: Combine multiple commits into one, delete, or revert commits that are no longer necessary.
Checkout to the desired branch you want to rebase.
Now perform the rebase command as follows: $git rebase 'branch name'
