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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:33:13+00:00 2026-05-15T19:33:13+00:00

I have multiple projects that I’d like to put up onto GitHub.com. All of

  • 0

I have multiple projects that I’d like to put up onto GitHub.com. All of these projects are in my local Git repository. I have just one repository, but for each project, I’d like to have 1 GitHub project. That way, bugs can be organized by the project.

How can I set this up so that it isn’t that difficult to manage? Do I need to redo my repository layout and create new git repositories locally for each project? That would be really time involved and I might be losing the Git history.

Walter

  • 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-15T19:33:13+00:00Added an answer on May 15, 2026 at 7:33 pm

    Depending on how your repo is organized, you can use git filter-branch to create a new repo for each project, retaining history for each individual project only.

    Assuming your current repo structure is like this:

    repo/
      project1/
        project1-file
      project2/
        project2-file
      project3/
        project3-file
    

    You can first clone your repo (git filter-branch will remove files and their history, so clone your original repo first). Then, in your cloned repo, you can use git filter-branch to create a new repo (with all the old history) at the root of project1:

    $ git filter-branch --subdirectory-filter project1 HEAD
    

    Now, your repo will look like the following:

    repo/
      project1-file
    

    And it will still contain the history for all files that were stored under project1/ in the old repo.

    Repeat that step for each project, and you will now have three independent repos, with all the history for their relevant projects.

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

Sidebar

Related Questions

I have multiple projects that are stored on my local computer but are not
We have multiple Python projects that have dependencies on each other. Hierarchically, these are
I have a Visual Studio 2010 solution that contains multiple projects. One of these
When you have multiple projects that all use the same set of JAR libraries,
I have a solution with multiple projects that all output dlls (except for the
I have multiple projects in our solution that is in our TFS 2010 repository.
i have multiple Elipse plugin projects that depend on each other. Several questions concerning
For example, I have a document library that hold contracts for multiple projects. So:
I currently have one project that currently contains multiple packages. These packages make up
I have multiple C# projects in a Visual Studio solution right now that will

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.