sketchpad

A collection of personal and technical notes.

View the Project on GitHub arantebw/sketchpad

How to move 2 commits from main to a new branch?

From the main branch, create a new-branch.

git switch -c new-branch

Go back to the main branch, delete the 2 commits.

git switch -
git reset --hard HEAD~2