Master interactive rebase to rewrite commit history: squash commits, reword messages, reorder changes, and create a clean, professional Git history.
Set up a repository with messy commit history that we'll clean up using interactive rebase.
mkdir -p ~/git-practice/lesson-302cd ~/git-practice/lesson-302git initecho "# Task Manager" > README.mdgit add README.mdgit commit -m "Initial commit"We'll create a repository with intentionally messy commits to practice cleaning up history before sharing with others.
Repository initialized with an initial commit.