X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-revert.txt;h=8081bbaffa8d3710b644c744b9f81d459938a20e;hb=a77a33a51df9b7655d80299487ec6fbb10445496;hp=feebd81da5889da2e77dc8508f8b7e3d642e6214;hpb=8fc66df237afce0b4318657f166b3583831949f3;p=git.git diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt index feebd81da..8081bbaff 100644 --- a/Documentation/git-revert.txt +++ b/Documentation/git-revert.txt @@ -3,11 +3,11 @@ git-revert(1) NAME ---- -git-revert - Revert an existing commit. +git-revert - Revert an existing commit SYNOPSIS -------- -'git-revert' [-n] +'git-revert' [--edit | --no-edit] [-n] DESCRIPTION ----------- @@ -19,8 +19,19 @@ OPTIONS ------- :: Commit to revert. + For a more complete list of ways to spell commit names, see + "SPECIFYING REVISIONS" section in gitlink:git-rev-parse[1]. --n:: +-e|--edit:: + With this option, `git-revert` will let you edit the commit + message prior committing the revert. This is the default if + you run the command from a terminal. + +--no-edit:: + With this option, `git-revert` will not start the commit + message editor. + +-n|--no-commit:: Usually the command automatically creates a commit with a commit log message stating which commit was reverted. This flag applies the change necessary to revert the