On Fri, 6 Feb 2015 07:46:00 -0800 (PST)
Wilson Ren <ren...@gmail.com> wrote:

> Is there a way to keep track/update which submodule commits used in a 
> project? 
> 
> From what I have read and tried, the sub module is pointed at the
> commit it has in its HEAD when it's first time added in the main
> project. If we fetch a (new) different commit of 
> the submodule to the main project, no change is made to the submodule 
> reference. 
> 
> Is there any workaround?

Git tracks submodules using exact commits (see [1]), so, if I
understood your fears correctly, they are unfounded: when you check out
any prior state of a superproject, the checkout will refer to the exact
states of all its submodules recorded in that superproject's commit.

1. http://git-scm.com/book/en/v2/Git-Tools-Submodules

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to