backslashing '~' characters do not have any effect, quoting with +++ has. Signed-off-by: Sylvain Rabot <sylvain.rabot@xxxxxxxxxxxx> --- Documentation/git-revert.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt index f40984d..9368892 100644 --- a/Documentation/git-revert.txt +++ b/Documentation/git-revert.txt @@ -82,12 +82,12 @@ effect to your index in a row. EXAMPLES -------- -git revert HEAD~3:: +git revert HEAD+++~+++3:: Revert the changes specified by the fourth last commit in HEAD and create a new commit with the reverted changes. -git revert -n master\~5..master~2:: +git revert -n master+++~+++5..master+++~+++2:: Revert the changes done by commits from the fifth last commit in master (included) to the third last commit in master -- 1.7.3.2 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html