Undo a git commit Aug 23, 2015 • Noel When you haven't pushed the commit; you've just realised after running a commit and too many files have been included in the command. git reset --soft HEAD~1