We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c00b7e + e91461b commit 3e23116Copy full SHA for 3e23116
1 file changed
Documentation/git-submodule.txt
@@ -221,9 +221,12 @@ foreach [--recursive] <command>::
221
the processing to terminate. This can be overridden by adding '|| :'
222
to the end of the command.
223
+
224
-As an example, +git submodule foreach \'echo $path {backtick}git
225
-rev-parse HEAD{backtick}'+ will show the path and currently checked out
226
-commit for each submodule.
+As an example, the command below will show the path and currently
+checked out commit for each submodule:
++
227
+--------------
228
+git submodule foreach 'echo $path `git rev-parse HEAD`'
229
230
231
sync [--recursive] [--] [<path>...]::
232
Synchronizes submodules' remote URL configuration setting
0 commit comments