Is it possible to add nested submodules in the root repo in git?

I want to make submodule in my repo:

Root /
\--- /A (submodule)

But also I want to nest another submodule, also in root:

  • Can I create multiple repository directories in Bonobo GIT server?
  • Composer - No Matching Package Found
  • files re-checked out from git repository with 'clean' filter end up with modified status
  • Edit an AndroidManifest when compiling to remove API-key
  • Visual studio update model from data base Issue
  • Why couldn't I discard a file from my working directory in Git?
  • Root /
    \--- /A (submodule)
     \-- /A/B (another submodule)

    And I can’t add B as submodule to A, since A is a third-party repo.

    The real-life example.

    llvm + clang trees: I want to include both repos, but clang must be checked-out inside llvm tree.

  • Pruning branches that were deleted in upstream Git repo but still exist in my fork
  • Git removing upstream from local repository
  • Reasons to use full-blown git rather than tfs via git-tfs
  • Automatically set upstream after pushing a new branch
  • Unable to use git-svn in Mac
  • Git and Team Foundation Server
  • One Solution collect form web for “Is it possible to add nested submodules in the root repo in git?”

    No, you would have to:

    • add B as a submodule of Root
    • make a symlink (even on Windows) from Root/A/B to Root/B.
      That symlink remains private, and isn’t added to the (thirdparty) repo A.
    Git Baby is a git and github fan, let's start git clone.