How to use git rebase

Goals

  1. I have seen a couple of different ways of using git rebase to commits from one branch to another branch. I don't know what the difference is between the two different methods for their end effect. I would like to know what the difference is.

Things I have learned.

  1. This section is to come later.
  2. General Process for using the rebase command twice (source)

    In this scenario I started a project in main and wanted to preserve what I had done as if I had done it in a feature branch instead of the main branch, so I wanted to move everything in the main branch to a new feature branch. The name of the feature branch in my case is . The goal is to move all of the commits from the main branch to the end of the main branch.