1. git-undo(1)
  2. Git Extras
  3. git-undo(1)

NAME

git-undo - Remove latest commits

SYNOPSIS

git-undo [<commitcount>]

DESCRIPTION

Removes the latest commits.

OPTIONS

<commitcount>

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

EXAMPLES

Removes the latest commit.

$ git undo

Remove the latest 3 commits:

$ git undo 3

AUTHOR

Written by Kenneth Reitz <me@kennethreitz.com>

REPORTING BUGS

<http://github.com/visionmedia/git-extras/issues>

SEE ALSO

<http://github.com/visionmedia/git-extras>

  1. March 2011
  2. git-undo(1)