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

  • Home
  • SEARCH
  • 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 8185459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:51:22+00:00 2026-06-07T01:51:22+00:00

I have two repositories: Gephi (big open source project) hosted on github Project of

  • 0

I have two repositories:

  • Gephi (big open source project) hosted on github
  • Project of my company based on gephi

7 months ago, when our project started, somebody took a snapshot of gephi project on github and save it to corporate svn => change history loss

now i decided to move our project to git repository and merge changes with original project

i have now git repository migrated from svn with git-svn

my files does not have change history beyond the time when our project started

Can i map initial state of our repository to state of original repository? In other words i would like to start aplying our changes to original repository from specific revision.

Update:

Today i found another obstacle. Schema first:

enter image description here

  • red branch is the original project

  • <alpha1> and <alpha2> are commits of plugins for main project (unrelated to code commited in <E' E'' E'''>)

  • in <E'> <E''> <E'''> was added code from main project (red) repository <E> (in each commit cca one third of project from <E>)

I have fetched red and blue repositories into one. On second schema i have desired state. Is it possible to do this? (for example make from <E' E'' E''> just one commit (<E'>) and then mark that commit as a merged from branches <ABCD> and <alpha1 alpha2>)

Thank you Julien for your response. It seems very helpful.

  • 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-07T01:51:24+00:00Added an answer on June 7, 2026 at 1:51 am

    Disclaimer: I have now tested this, and it seems like it works as expected (assuming I understood you correctly, of course). However, there’s still a lot that can go wrong. Absolutely only try this out on a separate working copy of your project’s repository, and make sure to examine everything before pushing it anywhere. Keep full directory backups of the state before you did this.

    So I assume you have two independent repositories. The original project (Gephi):

    A---B---C---D---E
                    ^ HEAD of Gephi
    

    And your project, whose first revision looks identical to the original project’s last revision:

    E'---V---W---Y---...---Z
                           ^ HEAD of your project
    

    (possibly with some branches, but that doesn’t really matter here.)

    What you’d like to have (if I understood correctly) is:

    A---B---C---D---E---V---W---Y---...---Z
    

    You could try the following. Again, do this on your own, separate working tree, and make sure everything is in order before pushing this to any central repository!

    While in the directory of your own working tree, fetch the heads and objects of the original Gephi repository:

    git fetch /path/to/original/gephi
    

    If you haven’t cloned the Gephi repository, you might as well specify the github URL instead of a local filesystem path.

    This will result in the following situation in your current working tree:

    A---B---C---D---E
                    ^ FETCH_HEAD
    
    E'---V---W---Y---...---Z
                           ^ HEAD
    

    We haven’t changed a lot. Currently, the two heads coexist peacefully and completely independently from each other, but you now have access to the objects from both repositories and can try to combine them.

    We now want to discard E’ (it should be identical to E), and instead make E the parent of your project’s first commit, which is V. To do this, you can use git filter-branch:

    git filter-branch -f --parent-filter 'test $GIT_COMMIT = <V> && echo "-p <E>" || cat'
    

    Replace <V> and <E> by the commit hashes of V and E respectively. To find those out, you can do git log to examine your project’s commits and, since we’ve fetched them, git log FETCH_HEAD to examine Gephi’s commits.

    This will effectively connect V directly to E.

    This should even work if it turns out that the head (i.e. the latest commit) of the original Gephi repository isn’t what you based your project on, meaning that there have been new commits in Gephi that you haven’t (yet?) taken care of. Just be sure, again to substitute <E> with the hash of the commit that you have based your changes on, not with the head.

    Conversely, be sure that you substitute <V> with the hash of the first change you made. Maybe your repository doesn’t contain an E’ identical to E, but the very first commit already contains changes toward the original. Then this first commit hash will be your <V>, instead of the one after it.

    To summarize both last paragraphs: the above command should also work if your situation looks like, for example, this:

    A---B---C---D---E---F---G---H---I
                    ^               ^ FETCH_HEAD
                    point where your project branched off
    
    V---W---Y---...---Z
    ^                 ^ HEAD
    first change based on E
    

    Just make sure to use the commit hashes that make sense in this context.

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

Sidebar

Related Questions

I have two repositories on github, and my usernames on github and my local
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 am completely new to GitHub, and I have added two private repositories. One
I have two repositories. I started a project locally on my development machine, later
I have a project that has existed in two SVN repositories. The second SVN
We have two repositories, one for current code and one for project management. Now
My organisation is preparing to release an open-source version of our software using github,
I have this situation: I have two repositories on my machine, both are based
I have two unrelated repositories 'public' and 'develop': prj/ public/ develop/ 'develop' has lots
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost

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.