I had master dcommit to (and rebase from) the Subversion trunk.
I created an intermediate Subversion branch tc, to merge changes from 2 different branches, using:
git branch master
git svn branch tc -m "Branch for merging"
git checkout -b tcl --track tc
git merge cat #Another branch, whose changes I merged here
git commit -m 'Merged changes from cat branch'
git svn dcommit
Since everything was fine, I wanted to promote this to the trunk. I followed doing:
git branch master
git merge tcl
git svn dcommit
Now, because master was merged from another branch that was pointing to a different Subversion branch, it tries to commit to the Subversion branch tc. I want it committed to the Subversion trunk.
Is there a git svn switch or something like that?
I know my workflow is not the optimal and any suggestions to improve it are welcome too.