git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: `git submodule sync`'s purpose?

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Apr 20, 2010, 02:35 UTC
Message-ID
<g2g8c9a061004191935s86a9d7a7i8dd1a361d5a0da3@mail.gmail.com>
In-Reply-To
<t2sc115fd3c1004191856za23ef32m421697b98159bcfe@mail.gmail.com>
On Mon, Apr 19, 2010 at 18:56, Tim Visher <tim.visher@gmail.com> wrote:
Show 14 quoted lines
> Hi everyone,
>
> trying to understand if I'm just failing to parse the docs for `git
> submodule sync`.  I'm basically under the impression that I can edit
> the .gitmodules file by hand and then use that command to sync up my
> submodules witin .git/config to that value.  Am I totally missing
> something?
>
> An example session can be found on [pastebin][].
>
> [pastebin]: http://pastebin.com/chEdc2u5
>
> Thanks in advance!
>

I think the point is more that you can edit .git/config to point a submodule at a different location (say you have a copy of the submodule repo somewhere with some changes you want to try out), and then can use "git submodule sync" to get the entry in .git/config "back in sync" with the canonical location for the submodule.

-Jacob
Previous: Tim Visher
Message 2 of 2 in “`git submodule sync`'s purpose?”
  1. Tim VisherApr 20, 2010
  2. Jacob HelwigApr 20, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.