To uncommit your local commit (which has not yet been pushed to Github) and keep your staged changes use:
git reset --soft HEAD~1
This command will undo your last commit, but it will keep your changes and your staging intact.
To uncommit your local commit (which has not yet been pushed to Github) and keep your staged changes use:
git reset --soft HEAD~1
This command will undo your last commit, but it will keep your changes and your staging intact.