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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:07:39+00:00 2026-05-20T18:07:39+00:00

Repository A: migrated to git from a project’s SVN at revision r : cloned

  • 0

Repository A: migrated to git from a project’s SVN at revision r: cloned the whole thing including all of SVN’s history, tags, etc. A little development on git afterwards.

Repository B: the same project, but independently migrated from SVN at revision r+small_number. Only the latest snapshot was brought into git. Lots of independent development afterwards.

Now I merged A into B. The idea is that SVN will be discarded, development will continue in the develop branch of the project’s repo on GitHub. I used simple merge to do the job; thankfully there were very few real conflicts. The development was mostly in different areas, though there was a lot of cleaning up after the merge, unrelated to git.

But: now when I do e.g. git rebase -i HEAD~2 on the merged result, which I understand should let me rebase the last two commits, I am greeted with a page of some 300+ commits — the complete history of the project since revision 1 in SVN. I aborted the rebase for fear of messing up even more (obviously I’m a complete Git novice).

Is that outcome expected? Is it desirable? If not, how to fix it?

Note that all unit tests etc. pass, the files themselves are ok, only I don’t understand what happened to git metadata/history.

EDIT: this is what I *think* the repository looks like now:

          r         A
... o --- o --- ... o 
                     \ 
               B      \    
    o --- .... o ----  o --- ... o 
   r+small_number      C         HEAD
  • 1 1 Answer
  • 3 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-20T18:07:40+00:00Added an answer on May 20, 2026 at 6:07 pm

    I guess this behaviour occurs because you are trying to rebase over a merge commit.

    For the following answer, I’m assuming that your history looks like this, i.e. repositories A and B are completely independent:

              r         A
    ... o --- o --- ... o
    
    o ... o
    r'    B
    

    You need to ask yourself what are you trying to achieve? So you want to have a new branch C containing both the changes in A and B. What are the priorities here? Do you want to achieve a proper history; correcting the fact that r' lost its SVN history? Or is it important to keep the git history of A and B unchanged?

    My answer is going to assume you want to achieve the former. As both A and B descendet from very similar versions of the SVN repository, it might be a good idea to give them a common git base before merging the common history. So, ideally before merging you would have the situation:

              r          A
    ... o --- o --- .... o
               \
                \
                 o --- .... o
           r+small_number   B
    

    At the moment, I’m not sure which is the best way to achieve this, but you could try doing git rebase -p --onto r --root B.

    Then you could just git merge A and B and end up with the history

              r          A     C
    ... o --- o --- .... o --- o
               \              /
                \            /
                 o --- .... o
           r+small_number   B
    

    where C contains all your changes. I would probably leave it at that; without any further rebasing.

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

Sidebar

Related Questions

I migrated my SVN repository successfully with Tags into Git using git svn-clone .
We have recently migrated to Git from SVN. We have setup a bare repository
I migrated my repository from SVN to git. I used THIS site. Now I
We have a 3.5 Gb SVN repository recently migrated from a 6 Gb one.
I have a svn repository that I migrated to git using the tool svn2git.
I am converting a SVN repository to a Git repository following guidance from Pro
In my repository, I have created tags using the following commands. git tag v1.0.0
Is this possible? Let me explain what I mean. I have migrated from svn
Firstly, I have migrated my CVS repository into SVN repository. I checked out this
I have migrated a cvs repository to git repository and it is in the

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.