On running "git svn dcommit", git creates a separate commit in SVN for every local commit, one made since last syncing with SVN. Here is a way to combine all recent local commits into single commit for SVN.

If you have multiple commits piled up on your local system, you just need to run following commands:

git reset <hash tag of commit till which u need to combine>
git commit -am "your message"

Above commands will create one clubbed commit of all the commit till the hash tag used. Please Make sure to you add any new files using "git add <file>". "git commit -am " does not add new files by itself.

I have answered this question on stackoverflow. You can find more answers by expert users here.


Subscribe - To get an automatic feed of all future posts subscribe here, or to receive them via email go here and enter your email address in the box. You can also like us on facebook and follow me on Twitter @akashag1001.