git-back(1)

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.

  1. 7
  2. 8
  3. 9
  4. 10

Author

Written by Kenneth Reitz <[email protected]>

Reporting bugs

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

From git-extras 4.6.0-1 in Debian 10 (Buster). Parsed by carta from the page's man source.