This guide will walk you through practicing git rebase on a local repository. We'll start by creating a simple repository and make some commits, then practice rebasing a branch onto the updated main branch.
1. Initialize an empty repository:
Open your terminal and navigate to the directory where you want to create the repository. Then, run:
git init