About 6,840,000 results
Open links in new tab
  1. Pull latest changes for all git submodules - Stack Overflow

    It does NOT pull the latest commits for each submodule. git submodule foreach git pull origin master or git pull origin master --recurse-submodules is what you want if you intend to update …

  2. How can I specify a branch/tag when adding a Git submodule?

    How does git submodule add -b work? After adding a submodule with a specific branch, a new cloned repository (after git submodule update --init) will be at a specific commit, not the branch …

  3. How do I "git clone" a repo, including its submodules?

    Sep 26, 2010 · How do I clone a git repository so that it also clones its submodules? Running git clone $REPO_URL merely creates empty submodule directories.

  4. How do I add Git submodule to a sub-directory? - Stack Overflow

    The most important difference is that it places a simple .git file there, instead of a .git directory, which contains a path reference to where the real git dir lives - generally at parent project root …

  5. How do I revert my changes to a git submodule? - Stack Overflow

    I have a git submodule (RestKit) which I have added to my repo. I accidentally changed some files in there and I'd like to go back to the source version. In order to do that, I tried to run Mac:...

  6. git - How do I remove a submodule? - Stack Overflow

    Aug 11, 2009 · I.E. git-delete-submodule possibly removes the wrong path below .git/modules/*, as it assumes that the module and the path are identical (which is quite often not the case), …

  7. git - Changing an existing submodule's branch - Stack Overflow

    Apr 27, 2015 · First of all you have to perform actions related with module: git submodule set-branch -b v2.0.0 my_module git submodule sync git submodule update --init --remote …

  8. Git - Ignore node_modules folder everywhere - Stack Overflow

    Apr 23, 2015 · Add node_modules/ or node_modules to the .gitignore file to ignore all directories called node_modules in the current folder and any subfolders like the below image.

  9. How to do git submodules and why to use git submodules

    Mar 29, 2023 · I have found a GitHub project and it uses git submodules. What is the usage of git submodules? How to create git submodules? How do they differ from subtree?

  10. What is the point of 'git submodule init'? - Stack Overflow

    Jun 5, 2017 · Imagine the repository has 10 submodules and you are interested in only two submodules of these. In such a case, you may want to get updates from only these two …