Documentation: quote double-dash for AsciiDoc
[gitweb.git] / Documentation / git-commit.txt
index 8f89f6f08c57335ea6606dd1eaddde98477e9c9e..b9aa220db8fa1d0eb23535c15ef2350e44cd545c 100644 (file)
@@ -275,7 +275,7 @@ When recording your own work, the contents of modified files in
 your working tree are temporarily stored to a staging area
 called the "index" with 'git add'.  A file can be
 reverted back, only in the index but not in the working tree,
-to that of the last commit with `git reset HEAD -- <file>`,
+to that of the last commit with `git reset HEAD \-- <file>`,
 which effectively reverts 'git add' and prevents the changes to
 this file from participating in the next commit.  After building
 the state to be committed incrementally with these commands,