git-back (1) Linux Manual Page
git-back – Undo and Stage latest commits
Synopsis
git-back [<commitcount>]Description
Removes the latest commits, and add their changes to your staging area.Options
<commitcount> Number of commits to remove. Defaults to 1, thus remove the latest commit.
Examples
Removes the latest commit.$ git back
Remove the latest 3 commits:
$ git back 3
