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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:08:51+00:00 2026-05-17T21:08:51+00:00

I have two git repositories, like this: proj1 proj2 proj1 has a tag v1.0.0

  • 0

I have two git repositories, like this:

  • proj1
  • proj2

proj1 has a tag v1.0.0 and proj2 has tags v2.0.0 and v2.1.0. Now I would like to merge proj1 (the v1.0.0 tag in particular) into proj2 as if it was an earlier version of proj2, so that I have the tags v1.0.0, v2.0.0 and v2.1.0. I’m also fine if I have to merge proj2 into proj1 or merge both into a new repository, as long as I get all the tags and the combined history.

There is a lot of people asking similar questions, like the following, but none seem to have my particular problem – adding two repositories as different versions.
Merging two Git repositories

Is that possible?

  • 1 1 Answer
  • 1 View
  • 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-17T21:08:51+00:00Added an answer on May 17, 2026 at 9:08 pm

    It is possible. Use git remote add proj2 file:///path/to/proj2 within proj1. Then git fetch proj2. Now all the commits in proj2 are visible within proj1, and you can use branch merging, tagging, etc. to splice things together in one repository.

    If this is a repository used by other people you might want to backup your .git directory before starting.

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

Sidebar

Related Questions

I have two separate git repositories. One is mine, and has Branch A, the
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost
I have two text file. file1.txt has: gedit google chrome git vim foo bar
I have two git repositories that are tangentially related. Namely, content of one was
I have two separate git repositories for the same version of a single website.
I would like to know how you normally deal with this situation: I have
The structures of my Git repositories look like this: A-B-C-D-E-F # master branch in
How can we get the difference between two git repositories? The scenario: We have
I have two git repositories: git_repo_A: https://github.com/gnychis/coexisyst git_repo_B: https://github.com/gnychis/android-wireless-monitor I want to move everything
I have two unrelated (not sharing any ancestor check in) Git repositories, one is

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.