Currently, when I run git svn dcommit
git creates a separate commit in SVN for every local commit I\'ve made since last syncing with SVN. Is there any way for
No, but you can squish all the commits together pretty easily. For the following example, I'm going to assume you're on the master
branch corresponding to the remote trunk
branch and that you want to squish all local commits together:
git tag local # create a temporary tag
git reset --hard trunk
git merge --squash local
git commit # write your single commit message here
git svn dcommit
git tag -d local # delete the temporary tag named local
Instead of using a temporary tag you could also just use the reflog (i.e. use master@{1}
in place of local
)