Goal
I accidentally added commited. How can i undo?Recipe
To Leaves working tree as it was before:git reset --soft HEAD^To get 2 commits back
git reset --soft HEAD^^and so on...
Then
git commit -a -m -c ORIG_HEAD
git reset --soft HEAD^To get 2 commits back
git reset --soft HEAD^^and so on...
git commit -a -m -c ORIG_HEAD