Bring the whole working directories into a state representing a previous commit. The procedure listed below in non-destructire because it does not change remote repo.
git log view the list of commits git checkout -b someBranch 33dbb94b5 creates a branch refering to a specific commit and switches to this branch
Cleanup: switch to the main (or master) branch, view the newly created branches and delete them.
git checkout main or master git branch -a view all branches git branch -d someBranch delete a branch