I have a repository with submodules from other repositories. When I do a git pull origin master , all changes for the current repository and its submodules automatically come. Which team can get changes only for the current repository?

  • one
    according to the default documentation , sub-modules are not polled. Apparently, you have reconfigured something somewhere (for example, like this ), and now you want to “return everything back”. - aleksandr barakin
  • @alexanderbarakin, this is a book and not documentation, something I did not find the default description in the documentation. - ixSci

1 answer 1

By default, git does not poll ( recurse_submodules_default zero, by default) the repositories of the submodules, it means that you have something in the configuration files that causes git to do this. But this behavior can be explicitly disabled by calling pull like this:

 git pull --no-recurse-submodules 

This is a clear prohibition on fetch commit for submodules.