Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 987217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:26:41+00:00 2026-05-16T05:26:41+00:00

I have the following directories structure: g1/ .git a b c/ .git d e

  • 0

I have the following directories structure:

  • g1/
    • .git
    • a
    • b
    • c/
      • .git
      • d
      • e

As you can see, I have de repository “c” inside repository “g1”. When I use the following command:

git clone g1 g2

I only get the following directories structure:

  • g1/
    • .git
    • a
    • b
    • c/

The directory “c” remains empty. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:26:41+00:00Added an answer on May 16, 2026 at 5:26 am

    Submodules (discussed in the Pro Git Book), helps manage repositories nested within a main repository:

    Submodules allow foreign repositories
    to be embedded within a dedicated
    subdirectory of the source tree,
    always pointed at a particular commit.

    They are not to be confused with
    remotes, which are meant mainly for
    branches of the same project;
    submodules are meant for different
    projects you would like to make part
    of your source tree, while the history
    of the two projects still stays
    completely independent and you cannot
    modify the contents of the submodule
    from within the main project.

    Submodules maintain their own
    identity; the submodule support just
    stores the submodule repository
    location and commit ID, so other
    developers who clone the superproject
    can easily clone all the submodules at
    the same revision.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mercurial repository with the following directory structure: / /system /applications /applications/client1
I have a directory structure with the following on localhost: http://localhost/testing/ A directory structure
For my Python application, I have the following directories structure: \myapp \myapp\utils\ \myapp\utils\GChartWrapper\ \myapp\model\
I have a directory structure that resembles the following: Dir1 Dir2 Dir3 Dir4 L
I have the following folder structure: foo/ foo/bar foo/baz foo/bee I created a git
I have the following directory structure: --var ----trac ------company1 --------project1 --------project2 ------company2 --------project3 --------project4
CentOS 5.5 Subversion 1.4 httpd-2.2.3-43.el5.centos.3 I have the following repository structure I am created
I have a directory structure in my machine as following bhagwat durga Sai Baba
I have the following directory structure: . .. ./Graphic/ ./Graphic/SymbolXLib There are several other
I have the following program to browse all virtual directories and their sub directories

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.