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

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

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

  4. How do I "commit" changes in a git submodule? - Stack Overflow

    $ cd path/to/submodule $ git add <stuff> $ git commit -m "comment" $ git push Then, update your main project to track the updated version of the submodule:

  5. Adding git submodules automatically (.gitmodules)

    Apr 22, 2016 · What I would like is git submodule init to automatically add non-staged modules that are present in gitmodules. Ie, that the gitmodules files dictates how git manages …

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

  7. git - Local repository as submodule - Stack Overflow

    Assume I have a repository named Shared Features on remote and local. I want to add this repo to another git repo as a submodule, but instead of using the remote one, I want to use the …

  8. Git submodule inside of a submodule (nested submodules)

    181 Is it possible for a git submodule to be made of several other git submodules, and the super git repo to fetch the contents for each submodule? I have tried to do this using the …

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

  10. Git update submodules recursively - Stack Overflow

    In recent Git (I'm using v2.15.1), the following will merge upstream submodule changes into the submodules recursively: git submodule update --recursive --remote --merge You may add --init …