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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:38:04+00:00 2026-06-08T08:38:04+00:00

So I have a project that is a git repo which contains another git

  • 0

So I have a project that is a git repo which contains another git repository. So the structure is this:

/gitProject
    /other
    /stuff
    /anotherGitProject

Currently, I’ve got anotherGitProject set up as a submodule of gitProject. My problem is that I have to deploy anotherGitProject to another part of my hard drive. Since anotherGitProject functions as an add-on, I just copy the contents of anotherGitProject directly into the other project’s directory tree:

/gitProject
    /other
    /stuff
    /anotherGitProject
/otherProject
    /(contents of anotherGitProject+otherProject)

My question is: How can I keep track of the changes I make to anotherGitProject within gitProject? This seems really convoluted, but I need to make changes to anotherGitProject on top of otherProject or else this wouldn’t be an issue.

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

    The idea would be to:

    • clone anotherGitProject in otherProject,
      or even as otherProject (if the content of anotherGitProject needs to be directly within otherProject, in which case:

      • rename otherProject in otherProject.tmp
      • clone anotherGitProject as otherProject
      • copy the rest of otherProject.tmp content in otherProject
      • add a .gitignore to ignore anything which isn’t anotherGitProject original content
    • add to anotherGitProject initial repo (the one being a submodule to gitProject) a remote pointing to otherProject

    That way, you can fetch/pull from otherProjectdirectly back in anotherGitProject

    If anotherGitProject is, as a plugin, a simple subdirectory of otherProject, the process is much simpler, since, as I mention in my first point, you can simply clone anotherGitProject directly in the destination (within otherProject).
    The remote step is the same:

    cd /gitProject/anotherGitProject
    git add remote anotherGitProjectDeployed /path/to/otherProject/anotherGitProject
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's pretend I have a project directory that isn't a git repository. This project
I have a project that's using git. When I received the repo, it had
I have a project A that is a Git repository. I would like to
I have a large-ish project that I'm working on which uses git as the
I have a Git repository that contains a bunch of top-level maven projects (each
My situation is the following: I have a git Repo A which contains a
I have a project in eclipse on my laptop that I pushed to Git
From what I understand of subversion if you have a repo that contains multiple
I have a project, the source of which I'm managing with Git. It's a
I have a Git repository, which for my own reasons I want to manage

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.