undo-a-wrong-commit real revert a wrong commit pushed ⚠ Make sure to be in correct branch!! git reset --soft HEAD~1 go back one step without losing all modify of committed files git reset --hard HEAD~1 go back one step and lost all commit modify of files