You can create a new branch in Subversion using git svn branch . You can look at an example in this answer:
In particular, good advice in a related tutorial is to use the --dry-run option for svn dcommit to verify that when you run the command for the real one, it will click on the right branch.
The Pro Git book has a clearer description of how git svn dcommit decides which svn branch to upgrade. It seems to me that you need:
- Create a new svn branch using
git svn branch new-experiment - Create a local branch to track
remotes/new-experiment with git checkout --track -b new-experiment remotes/new-experiment Restore the changes from the old Git theme thread (suppose it's called experiment ) to new-experiment :
git checkout experiment git branch original-experiment git rebase new-experiment git checkout new-experiment git merge experiment
- Try
git svn dcommit --dry-run to check if the branch of the correct subversion branch will be changed. - If yes, then
git svn dcommit
source share