I've got a trunk setup where all my production code goes.
Then I have a debug
branch (parent is trunk
) which I add debugging code such as logging, var dumps, etc... this should never be in production. This branch rarely changes.
Lastly I have a feature
branch (parent is debug
) where I do all my coding with the benefits of debugging. There are constant commits to this branch.
I just want to know if there is an easier way to move my feature
code to the trunk
. This is what I currently do:
- Commit all changes to my
feature
branch - Switch to
master
andgit svn rebase
changes from other devs. rebase
myfeature
branch onto themaster
branch (git rebase --onto master debug feature
)merge
feature tomaster
git svn dcommit
changes to other devsrebase
debug
tomaster
(git rebase master debug
)- delete
feature
branch - create a new
feature
from thedebug
branch.