Undo last commit safely. Use for undo commit, revert, uncommit, cancel commit.
Safely undoes the last commit while preserving changes, handling pushed commits with revert.
/plugin marketplace add fusengine/agents/plugin install fuse-commit-pro@fusengine-plugins--soft | --mixed | (empty for soft reset)!git status
!git log -1 --pretty=format:'%h %s'
!git log origin/HEAD..HEAD --oneline 2>/dev/null || echo "No remote tracking"
Safely undo the last commit while keeping changes.
IF the last commit is already pushed to remote:
git revert HEAD to create a reverting commitIF the last commit is NOT pushed:
--soft (default): Keep changes staged--mixed: Keep changes unstagedgit reset $ARGUMENTS HEAD~1git status| Flag | Effect |
|---|---|
--soft | Keep changes staged (default) |
--mixed | Keep changes unstaged |