Undo the last git commit(s) while keeping changes staged.
Undo last commit:
git uncommit
Undo last 3 commits:
git uncommit 3
Equivalent to:
git reset --soft HEAD~N
brew tap below43/git-tools
brew install git-uncommit
Because I can never remember:
git reset --soft HEAD~1