views:

53

answers:

2

I have checkout'ed svn repo through git, but not from the first svn commit. Now I would like to extend the history a little back into past. Is it possible?

+2  A: 

You could follow the possibilities mentioned by Jakub Narębski in How do I prepend history to a git repo?

Basically, you import again your SVN repo with a larger commit range, then merge the two Git repo together.

VonC
+2  A: 

Not with your current history. But you can checkout the full history from SVN again and then rebase or merge your changes on that new branch.

Now your first commit (A) has no parent (or a parent of 00000 or something like that). If you get more, older commits, one of them will be the new parent of A. Although both refer to the same content, they will have different parents and therefore different commit hashes (eg. A and A'). You will end up with a parallel branch.

Then you can take whatever extra commits you made locally and rebase or merge them to the new history.

fmarc