I am using git-svn to work with the svn repository. The layout is standard, and I created a local repository with:
$ git svn clone -s http:
I need to work with a remote branch (svn) - MyBranch, so I created a local branch to track the remote:
(master)$ git checkout -b localMyBranch remotes/MyBranch (localMyBranch)$
I keep working and committing to the local branch when I go, and sometimes I do dcommit:
(localMyBranch)$ git svn dcommit
Meanwhile, other people are working on the trunk, and from time to time I want to merge the changes from the trunk to my branch in order to synchronize them. That I really got confused, because I could not find good information on how to do this. So far I know what I need to do:
(localMyBranch)$ git svn dcommit (localMyBranch)$ git checkout master (master)$ git svn rebase
Now what? I read that this is NOT the right way:
(master)$ git checkout localMyBranch (localMyBranch)$ git rebase master
How is he going to ruin the merge information for svn.
So, what is the best way to βreinstallβ my remote svn branch to a remote trunk while saving merge information for svn?
Sunny milenov
source share