Method 1: Undo commit and keep all files staged In case you just want to undo the commit and change nothing more, you can use
git reset --soft HEAD~;
source: https://bytefreaks.net/programming-2/how-to-undo-a-git-commit-that-was-not-pushed
Method 1: Undo commit and keep all files staged In case you just want to undo the commit and change nothing more, you can use
git reset --soft HEAD~;
source: https://bytefreaks.net/programming-2/how-to-undo-a-git-commit-that-was-not-pushed