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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:16:33+00:00 2026-06-18T06:16:33+00:00

For some reason, I only have one repository to use. But I have multiple

  • 0

For some reason, I only have one repository to use.
But I have multiple projects including java projects, PHP scripts and Android apps projects.

Now my problem is, I have to put them to different sub-folders inside the repository
I use different IDEs, You know, each IDE can have a workspace of itself.

Is there a simple way (say, by design and not by opinion) to solve the problem?

  • 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-18T06:16:35+00:00Added an answer on June 18, 2026 at 6:16 am

    While most people will tell you to just use multiple repositories, I feel it’s worth mentioning there are other solutions.

    Solution 1

    A single repository can contain multiple independent branches, called orphan branches. Orphan branches are completely separate from each other; they do not share histories.

    git checkout --orphan BRANCHNAME
    

    This creates a new branch, unrelated to your current branch. Each project should be in its own orphaned branch.

    Now for whatever reason, git needs a bit of cleanup after an orphan checkout.

    rm .git/index
    rm -r *
    

    Make sure everything is committed before deleting

    Once the orphan branch is clean, you can use it normally.

    Solution 2

    Avoid all the hassle of orphan branches. Create two independent repositories, and push them to the same remote. Just use different branch names for each repo.

    # repo 1
    git push origin master:master-1
    
    # repo 2
    git push origin master:master-2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a simple form (only extract fields here) but for some reason the JQserilization
I have a problem with tinyMCE but only on live environment from some reason
I have some ActionScript3 code that for some reason only crashes in a stack
I have trouble where, for some reason, SVN would only merge the newly generated
For some reason I have to delete phonegap-1.4.1 and use cordova-1.5.0, For this what
I have 1 cronjob that runs every 60 minutes but for some reason, recently,
I have only made one other ClickOnce application in the past but it generated
For some reason I have only the linker map for an application I am
For some reason this only returns the name of the first item in the
For some reason my galleryScroll() function only runs once, even though the function calls

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.