← All commands

gun

Undo the latest commit; keep changes staged

Git

Usage reference

Expands To

git reset HEAD~1 --soft

Usage

gun
Availability
Available when git is installed
Dependencies
git

Changes files, packages, Git history or running processes. Review the arguments before running.

In the Guide