Wednesday 15 May 2013

Git submodules and their relation to the parent -


If there are many submodules in a parent repository, have the parent repository collected the current commitment of the submand?

When I look at the parent repository on a fresh installation of the original repository, it does not appear to be the most updated version of the Submodule.

Clone the boot command with the box.

  git clone - the recursive repo_url folder    

the guardian The repository stores the command hash of each submodule, nor is the code of its own code when you originally clone the parent, then it will clamp the submodules with that commitment. This is really a good thing because you do not want to draw GIT as a new version of an episode because your parents can not be compatible with it.

To update a subdomain you should do it explicitly:

  cd submoduledir / git bridge main master cd .. git status   

then upgrade the submodule:

  git submoduledir git Commit -m "update submodule"   

If you want to get your local copy from that master You are doing this if you have updated the submodules:

  git pull origin master git submodule update --recursive    

No comments:

Post a Comment