Git undo a commit and redo
When you need to undo your last git commit…
- The last commit what should be undone.
- Reset to the parent “commit”, “soft” option does not touch the index file or the working tree at all, but resets the head to
, . - Make corrections to working tree files.
- Stage changes for commit.
- Commit the changes.