When using interactive rebase, which option is the default, and takes the commits and rebases them against the branch we selected code example
Example: what is git rebase
the rebase command integrates changes from one branch into
another. It is an alternative to the better known "merge"
command. Most visibly, rebase differs from merge by rewriting
the commit history in order to produce a straight,
linear succession of commits.