git submodules in ~ (was: Introductory git article?)

Casey Link unnamedrambler at gmail.com
Wed Feb 20 23:52:50 CET 2008


2008/2/20 martin f krafft <madduck at madduck.net>:
>  The way submodules work is that the parent has a reference to
>  a specific revision of a submodule. So if you have two machines and
>  each have a submodule in ~/foo at commit A and you add some commits
>  to the first ~/foo submodule and push them, you cannot just tell
>  your ~ on the other machine to update; instead, you have to pull
>  ~/foo and then commit ~ to tell it about the updated submodule.
>
>  I personally prefer the mr tool to submodules for this task.
>


Do you use the mr tool instead of git submodules? Or do you use mr to
manage your git submodules? I am trying to figure out the best way to
setup nested git repos and manage them. That is ~/src is one ~/docs is
one ~/docs/foo is another, etc.

Casey



More information about the vcs-home mailing list