DOKK / manpages / debian 10 / git-extras / git-back.1.en
GIT-BACK(1) Git Extras GIT-BACK(1)

git-back - Undo and Stage latest commits

git-back [<commitcount>]

Removes the latest commits, and add their changes to your staging area.

<commitcount>

Number of commits to remove. Defaults to 1, thus remove the latest commit.

Removes the latest commit.

$ git back

Remove the latest 3 commits:

$ git back 3

Written by Kenneth Reitz <me@kennethreitz.com>

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>

September 2018