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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:53:31+00:00 2026-05-12T11:53:31+00:00

I have created a bare git repo (lets call it repo #1) and cloned

  • 0

I have created a bare git repo (lets call it repo #1) and cloned it.

  • In the clone (repo #2) I have created several folders, one of which I have decided to make a git repo (repo #3).
  • When I commit to repo #2, everything runs as expected exept that repo #3 is ignored (the .git folder, the files commit).

How can I add repo #3 to repo #2 so that when I push repo #2 to repo #1, I can make a seperate clone of repo #1 in which I can also access the history etc. of repo #3?

In other words. How do I create a git repository that contains another git repository?

  • 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-12T11:53:31+00:00Added an answer on May 12, 2026 at 11:53 am

    You shouldn’t do that. Metadata under .git/ is changed during repo lifetime and that changes not necessarily mean “changes in the content” that should be committed: simple git repack changes files under .git but that changes should not be committed. Why do you want to do that?

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

Sidebar

Related Questions

I have created a remote bare repository: cd ~ mkdir -p git/foto-fiori.git cd git/foto-fiori.git
I got this scenario: I created a Git repository. $ git init Cloned an
I have a bare repository at /home/dan/repo/ and a working copy at /home/dan/www/project/ .
I have set up a git repository on my local machine and a bare
I have a Git repository. I have cloned the repository and can commit my
I have a branch called develop in remote bare repo hub , and I
I have hosting that give me ssh access. I created bare repository. Where I
I have a few git projects where I clone them and start off with
I am trying to implement a simple scenario where I have a git repo
ON A SERVER I created a git repo in the working directory of my

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.