Retaining topic branch commits with git-svn dcommit

I started using git-svn recently. My git work flow is like this.
git checkout master
git svn rebase
git checkout -b topicbranch
..changes
git commit
git checkout master
git merge topicbranch
git svn rebase
git dcommit

Problem is that, whenever I do dcommit the only final merge commit of topic branch is seen in svn repository. I want to see the svn commits corresponds to individual git commits made in topic branch.

Is their any way to do it. Or this is the recommended default behavior.

  • Git link to repository folder
  • git svn show-ignore gives error “command returned error: 1”
  • git merge between different repositories
  • Subversion to Git: Clone creating branches?
  • Git-svn and Eclipse?
  • When converting from svn to git using git-svn or svn2git, how can I change the base path of the repository and possibly still keep branches/tags?
  • How can I commit to an old git tag?
  • Create a master git repository for multiple git-svn repositories
  • One Solution collect form web for “Retaining topic branch commits with git-svn dcommit”

    (git rebase with no additional arguments is an error, so I suspect you’re not accurately describing what you’re doing. Also, you’ve missed out the svn in git svn dcommit.)

    However, it looks to me as if the problem is that you’re merging topicbranch into master without rebasing it first. That means that if this doesn’t turn out to be a fast-forward merge, there’ll be a merge commit added in the git history, and that can only be represented by a single commit in Subversion. After you’ve worked on your topic branch, try the following instead:

    # make sure you're on the right branch first:
    git checkout topicbranch 
    git rebase master
    git checkout master
    git merge topicbranch
    git svn rebase
    git svn dcommit
    
    Git Baby is a git and github fan, let's start git clone.