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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:33:20+00:00 2026-05-14T20:33:20+00:00

Normally, when I start up a new application, I’d create a new git repository

  • 0

Normally, when I start up a new application, I’d create a new git repository for it. That’s well accepted and plays nice with Github when I want to share my code.

At work, I’m working in a service oriented architecture. One very common pattern is to add some code to two different applications at the same time – perhaps adding a model with a RESTful interface to one and a web frontend for managing it on another. Using separate git repositories has some warts in this case.

Here are what I see as the downsides of doing separate repositories:

  1. I have to commit twice
  2. I can’t correllate related commits very well
  3. No single place to go back and trace history – I’d love to be able to bring up all my commits for the day in a single place
  4. Forgetting to pull one repo or another is a gotcha

On the other hand, I’ve used perforce a lot and its one giant repository model has lots of warts too. Perforce has features designed to let help you with those, git doesn’t.

Has anyone else run into this situation? How did you handle it? What worked well, and what didn’t?

  • 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-14T20:33:21+00:00Added an answer on May 14, 2026 at 8:33 pm

    If your different repo are part of the same global application, you can bring them together as submodules within a main project.
    From there you can:

    • commit the submodule only once in project P1 (if a submodule need to be reused in another project P2, you go within that other project P2, in the subdirectory referencing said submodule you just committed in P1, checkout that commit, go back up one level and commit that other project P2, since P2 has to reference the same commit that P1)

    • all related commits are referenced by the main project

    • a “super-main” project can reference all your submodules out there, in order for you to have that “single place to go back and trace history”

    • you only need to pull the main project, and that will pull the right submodules references.

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

Sidebar

Related Questions

Normally, if I want to start a new activity I can use StartActivity(typeof(foo)); This
In my application, I start an activity, that is in another application (Eclipse project)
Normally I create web application projects and use code-behind, but I have a requirement
I'm using VS2008 to debug an application that starts a new process. I believe
I have a simple application that starts with a splash screen activity that plays
Normally all the document related to an iOS application are stored in a document
Normally when I want to change the connection for a Query Editor Window in
Normally, when I want to allow a user to download a file without revealing
Requirements I want to publish a Java GUI application on Windows 7. This application
I created a new rails app (3.2.3, ruby 1.9) and try to start server.

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.