See http://stackoverflow.com/a/17199855/717355 for a more complete explanation and links onwards to some tutorials (http://www.vogella.com/articles/Git/article.html#submodules in particular with it's "Warning This means that if you pull in new changes into the submodules, you need to create a new commit in your main repository in order to track the updates of the nested submodules." ).
It does show that there are different ways of using submodules, each with their own particular special traits. Philip ----- Original Message ----- From: Sujitra Misin To: git-users@googlegroups.com Sent: Wednesday, June 19, 2013 12:15 PM Subject: [git-users] Re: Submodule tracking remote master shows modified on super project git status after submodule update --remote On Thursday, June 13, 2013 11:41:52 PM UTC+2, Adam Strzelecki wrote: In my superproject I have two submodules and I want them to track always master master. Using Git 1.8.2. So I've added "branch = master" to .gitmodules and using git submodule update --remote to pull always recent master. However everytime submodule master is updated, running superproject git status or diff shows its recorded sha1 has changed. This doesn't make sense since I am tracking master? Shouldn't it show it has changed only when submodule HEAD is not the branch recorded in my superproject's .gitmodules ?? Regards, Adam -- 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/groups/opt_out. No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3345 / Virus Database: 3199/6424 - Release Date: 06/19/13 -- 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/groups/opt_out.