<em>git submodule</em> [--quiet] init [--] [<path>…]\r
<em>git submodule</em> [--quiet] update [--init] [--] [<path>…]\r
<em>git submodule</em> [--quiet] summary [--summary-limit <n>] [commit] [--] [<path>…]\r
-<em>git submodule</em> [--quiet] foreach <command></div></div>\r
+<em>git submodule</em> [--quiet] foreach <command>\r
+<em>git submodule</em> [--quiet] sync [--] [<path>…]</div></div>\r
</div>\r
<h2 id="_description">DESCRIPTION</h2>\r
<div class="sectionbody">\r
<div class="para"><p>As an example, "git submodule foreach <em>echo $path <tt>git rev-parse HEAD</tt></em> will\r
show the path and currently checked out commit for each submodule.</p></div>\r
</dd>\r
+<dt>\r
+sync\r
+</dt>\r
+<dd>\r
+<p>\r
+ Synchronizes submodules' remote URL configuration setting\r
+ to the value specified in .gitmodules. This is useful when\r
+ submodule URLs change upstream and you need to update your local\r
+ repositories accordingly.\r
+</p>\r
+<div class="para"><p>"git submodule sync" synchronizes all submodules while\r
+"git submodule sync — A" synchronizes submodule "A" only.</p></div>\r
+</dd>\r
</dl></div>\r
</div>\r
<h2 id="_options">OPTIONS</h2>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-08-21 10:34:01 UTC\r
+Last updated 2008-08-28 02:50:34 UTC\r
</div>\r
</div>\r
</body>\r
'git submodule' [--quiet] update [--init] [--] [<path>...]
'git submodule' [--quiet] summary [--summary-limit <n>] [commit] [--] [<path>...]
'git submodule' [--quiet] foreach <command>
+'git submodule' [--quiet] sync [--] [<path>...]
DESCRIPTION
As an example, "git submodule foreach 'echo $path `git rev-parse HEAD`' will
show the path and currently checked out commit for each submodule.
+sync::
+ Synchronizes submodules' remote URL configuration setting
+ to the value specified in .gitmodules. This is useful when
+ submodule URLs change upstream and you need to update your local
+ repositories accordingly.
++
+"git submodule sync" synchronizes all submodules while
+"git submodule sync -- A" synchronizes submodule "A" only.
OPTIONS
-------