diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-08-27 16:39:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-27 16:39:19 -0700 |
commit | bb0d283989ec8853ffd72dfb26ff557ffa7781e4 (patch) | |
tree | cd96334c7d83c9463e1f0a16c8c6da45d8776781 /Documentation | |
parent | Merge branch 'maint' (diff) | |
parent | git-submodule: add "sync" command (diff) | |
download | tgif-bb0d283989ec8853ffd72dfb26ff557ffa7781e4.tar.xz |
Merge branch 'da/submodule-sync'
* da/submodule-sync:
git-submodule: add "sync" command
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-submodule.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index abbd5b72de..babaa9bc46 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -15,6 +15,7 @@ SYNOPSIS '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 @@ -139,6 +140,14 @@ foreach:: 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 ------- |