1GIT-REVERT(1)                     Git Manual                     GIT-REVERT(1)
2
3
4

NAME

6       git-revert - Revert an existing commit
7

SYNOPSIS

9       git-revert [--edit | --no-edit] [-n] <commit>
10

DESCRIPTION

12       Given one existing commit, revert the change the patch introduces, and
13       record a new commit that records it. This requires your working tree to
14       be clean (no modifications from the HEAD commit).
15

OPTIONS

17       <commit>
18           Commit to revert. For a more complete list of ways to spell commit
19           names, see "SPECIFYING REVISIONS" section in git-rev-parse(1).
20
21       -e|--edit
22           With this option, git-revert will let you edit the commit message
23           prior committing the revert. This is the default if you run the
24           command from a terminal.
25
26       --no-edit
27           With this option, git-revert will not start the commit message
28           editor.
29
30       -n|--no-commit
31           Usually the command automatically creates a commit with a commit
32           log message stating which commit was reverted. This flag applies
33           the change necessary to revert the named commit to your working
34           tree, but does not make the commit. In addition, when this option
35           is used, your working tree does not have to match the HEAD commit.
36           The revert is done against the beginning state of your working
37           tree.
38
39           This is useful when reverting more than one commits´ effect to your
40           working tree in a row.
41

AUTHOR

43       Written by Junio C Hamano <junkio@cox.net>
44

DOCUMENTATION

46       Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
47

GIT

49       Part of the git(7) suite
50
51
52
53
54Git 1.5.3.3                       10/09/2007                     GIT-REVERT(1)
Impressum