My project I am working on is version controlled under SVN. I had to do a large number of refactorings. For this purpose I took my workspace and created a new git repository. Afterwards I made the refactorings and committed to my local git repository as often as possible, made branches etc..
Meanwhile someone made commits to the SVN. Now I would like to commit my changes also into the SVN.
Adding the SVN via git-svn clone doesnt help, because the clone and the existing branches cant be merged (missing common ancestor) even if the tracked files are the same.
Is there a possibility to add a SVN link and/or create this ancestor?
It’s sort of a dirty hack in this instance, but if you smash all the commits down using
rebase, you could probably justcherry-pickthe consolidated change.UPDATE: Also, you might try using
rebaseto move the root of the branch you did your refactoring on so that it branches from a branch that tracks thegit-svnrepo.UPDATE 2: As ndim says, the
rebaseoption you’re looking for is probably--onto.