docs/git-submodule: fix unbalanced quote
[gitweb.git] / Documentation / git-submodule.txt
index d8415734753e0d03f3f6d37bd4b76369d37f5fb0..fc4fb64538f1bdfc277575901c694e025cbd2676 100644 (file)
@@ -227,9 +227,12 @@ foreach::
        the processing to terminate. This can be overridden by adding '|| :'
        to the end of the command.
 +
-As an example, +git submodule foreach \'echo $path {backtick}git
-rev-parse HEAD{backtick}'+ will show the path and currently checked out
-commit for each submodule.
+As an example, the command below will show the path and currently
+checked out commit for each submodule:
++
+--------------
+git submodule foreach 'echo $path `git rev-parse HEAD`'
+--------------
 
 sync::
        Synchronizes submodules' remote URL configuration setting