last modified at 2024-11-07by Jonas Brems
git reset HEAD~1
Where 1 is the number of commits you want to undo.
1