X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-revert.txt;h=71f7815d65a38db70a5176a50989300b39684cda;hb=3026402cbc60c003c4bc043368afc619e4d9b3cd;hp=a3f9a5655b8626f5a15944a688996999b5806b1c;hpb=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7;p=git.git diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt index a3f9a565..71f7815d 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 ----------- @@ -20,7 +20,16 @@ OPTIONS :: Commit to revert. --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 @@ -29,9 +38,9 @@ OPTIONS working tree does not have to match the HEAD commit. The revert is done against the beginning state of your working tree. - - This is useful when reverting more than one commits' - effect to your working tree in a row. ++ +This is useful when reverting more than one commits' +effect to your working tree in a row. Author @@ -44,5 +53,5 @@ Documentation by Junio C Hamano and the git-list . GIT --- -Part of the link:git.html[git] suite +Part of the gitlink:git[7] suite