I am currently working on a project using svn (server is version 1.4 which means no modern merge tools available).
I want to merge a branch with quite a few weeks of work in it. The problem is that back when the branch was created, it was made as a copy only of a subfolder.
Svn structure of project:
/trunk/folder1
/file1
/file2
folder2
folder3
...
Now I'm struggling to merge a branch back into trunk.
Now the problem is that the guy that created the branch only copied /trunk/folder1 and not the entire trunk. This creates a problem for git-svn, as it thinks that I created a bunch of files in the folder.
git co master
git merge branch1
...
create mode 100644 trunk/file1
create mode 100644 trunk/file2
(assuming that the files were originally in /trunk/folder1/file1
)
The original reason i'm not using svn for this, is because of too many conflickts. (svn merge
requires server 1.5+ and we're only on 1.4, svnmerge.py
can only merge small chunks at a time and requires a LOT of mental overload ... i have used a half day to get only half way through)
Using git merge
seems promising, but at first I need to tell git to use a subfolder of my master branch as merge target. How is that done?