What does 'git rebase' do?

  1. Creates a new repository
  2. Merges two repositories
  3. Deletes all commits
  4. Reapplies commits on top of another base tip

Explanation

Git rebase reapplies commits on top of another base tip, creating a linear project history. It's an alternative to merging that results in a cleaner commit history.