git-back1
Undo and stage latest commits
Usage
git-back [<commitcount>]
Overview
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
Releases
4 releases since Debian 7 (Wheezy); the text changed 3 times.