git submodules in ~ (was: Introductory git article?)
mailtomanish.sharma at gmail.com
Thu Feb 21 08:11:41 CET 2008
2008/2/20 martin f krafft <madduck at madduck.net>:
> also sprach Jens Peter Secher <jpsecher at diku.dk> [2008.02.17.1252 +0100]:
> > I tried various systems, but ended up only moving (and linking)
> > private dotfiles like .ssh/ and .gnupg/ in a git submodule. That
> > way I can check out my homedir without the private stuff on an
> > insecure machine, as others have described.
> 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.
Can you please share your .mrconfig?
More information about the vcs-home