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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:54:08+00:00 2026-05-31T23:54:08+00:00

I have directory structure like so: |– ROOT |– Project1 | |– application |

  • 0

I have directory structure like so:

|-- ROOT
    |-- Project1
    |   |-- application
    |   |-- img
    |   |-- js
    |   |-- css
    |   `-- system
    |
    |-- Project2
    |   |-- application
    |   |-- img
    |   |-- js
    |   |-- css
    |   `-- system
    |-- Project3
    ....

Root folder contains total of x projects: “Project1”, “Project2”, “Project3” and so on.

Now i’d like to use git on “system”, “css” and “js”.
These folders should be identical for each project.
So how can sync all projects with git?

I’m guessing to create a “Master Project” and push new modifications to there and pull new version to all other projects. But that’s pain in the a**..

What i’d like is to run some command/batch file to sync all at once.
Eg if i have 6 projects and i modify something in project 1, how can i get this modification to all projects fast(instead of pushing Project1 to “Master” and pulling it 5 times)?

Is it possible?

Just for a record i’m working on a Windows machine.

Previous question: Git between multiple projects

  • 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-31T23:54:10+00:00Added an answer on May 31, 2026 at 11:54 pm

    You still probably want to use a submodule. See this page in the git book.

    Using submodules makes handling the types of changes that you are talking about fairly straightforward. See the second half of this answer which summarizes the process well.

    I’ve modified my previous answer as I can see that this could be a bit of a pain for multiple projects if you need to keep them all in step as updating all the submodule commit references in the main project will take some time. As per the previous answer I suggest that you script this process if that is what you want to do.

    It does have an advantage once the projects mature however as in my experience it often happens that all projects cannot be updated at once. Sometimes one project still requires an older version for a period of time. In this case you can just to update the required projects to reference the new commit in the submodule and then upgrade the others later when you have time.

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

Sidebar

Related Questions

I have multiple projects with directory structure like this: /application/ /images/ /js/ /css/ /system/
I have a directory structure like com/example/web under the root directory which contains a
I have a directory structure like this: - Root - Versioned deployment folder -
If i have the following directory structure: Project1/bin/debug Project2/xml/file.xml I am trying to refer
I want a Java application to have a directory structure like the following (like
i'm creating a django application inside a virtualenv. I have a directory structure like
If I have a directory structure like this: - index.php - public - img
I have a directory structure like this: root folder1 abc.json def.json somedir more.json folder2
If I have a directory structure like this: package/ __init__.py functions.py #contains do() classes.py
I have a directory structure like this Root Sub Dir A Content Admin And

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.