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 8525725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:04:07+00:00 2026-06-11T08:04:07+00:00

I want to clone a repository including its submodules. I’ve learned about the –recursive

  • 0

I want to clone a repository including its submodules.

I’ve learned about the --recursive option at this question, but this solution requires the submodule repositories to be accessible from the cloning host.

Is there some switch to clone the submodules directly from the accessible host?

There is a https proxy through which I can theoretically reach the submodules repos, but the cloning host doesn’t have the needed certificates installed. So finding a way to install a certain https certificate in user space might be a solution as well.

  • 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-06-11T08:04:09+00:00Added an answer on June 11, 2026 at 8:04 am

    If the remote server (host1 in your comment) would have to execute a clone or fetch on your behalf, then no, you can’t do this.

    However, since the submodules are themselves repositories, you could use them directly if they are cloned on host1. After you clone the main repository, edit the .gitmodules file and change the Github URLs to the corresponding subdirectories of host1:mainrepo:

    [submodule "submod1"]
            path = extern/sub1
            url = git://github.com/user/myproject
    

    changes to

    [submodule "submod1"]
            path = extern/sub1
            url = host1:git/mainproject/extern/sub1
    

    You can then use the git submodules commands to work with them.

    (You’ll have to be careful though: don’t commit your changes to .gitmodules or push commits into the submodules on host1 unless you really mean to!)


    For your alternative question, check out the Git config settings http.proxy and http.sslCert. You should be able to provide a certificate file directly using the latter, without having to “install” it in the system CA path.

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

Sidebar

Related Questions

I want to clone git repository from another computer but it gives me a
I want to use git to clone a svn repository, but unfortunately, where svn
Say I have a repository on git.fedorahosted.org and I want to clone this into
I want v0.1.27 of nodejs code base. This is what I did. git clone
Assume that somewhere in the web exists public git repository. I want to clone
I want to clone LibreOffice. From the official website, this is what's written: All
I have this repository that I'd like to share but not necessarily by putting
I am new to Git. I want to clone a large remote repository lets
I've just cloned the Android kernel (via git clone ) repository but for some
I have a production SVN repository that i want to clone with git. when

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.