About 1,520,000 results
Open links in new tab
  1. 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?

  2. Pull latest changes for all git submodules - Stack Overflow

    For git 1.7.3 or above you can use (but the below gotchas around what update does still apply): git submodule update --recursive or: git pull --recurse-submodules if you want to pull your …

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

    Sep 26, 2010 · Git 2.23 (Q3 2019): if you want to clone and update the submodules to their latest revision: git clone --recurse-submodules --remote-submodules <repo-URL> If you just want to …

  4. how exactly does git submodule work - Stack Overflow

    Aug 22, 2012 · The .gitmodule file only specifies the module repository url. How does git submodule know which version to download? It seems to be always checking out the latest …

  5. git - How to create submodule in existing repo - Stack Overflow

    Feb 21, 2016 · git submodule update --remote --merge will fetch the latest changes from upstream in each submodule, merge them in, and check out the latest revision of the submodule. As [the …

  6. 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 …

  7. Git update submodules recursively - Stack Overflow

    452 My project struture ProjectA -FrameworkA (submodule) --Twig (submodule of FrameworkA) How I can update submodules recursively? I already tried some git commands (on ProjectA …

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

    proj> git submodule add [email protected]:user/jslib.git ui/jslib That will clone the git repo in as a submodule - which involves the standard cloning steps, but also several other more obscure …

  9. Differences between git submodule and subtree - Stack Overflow

    Aug 2, 2015 · What are the conceptual differences between using git submodule and subtree? What are the typical scenarios for each?

  10. Git: how to push submodule to a remote repository?

    Dec 4, 2011 · Submodule is in fact a separate repo, which is pushed to another remote. So basically when you change something in your submodule you need to be in your submodule's …