Home > coding > Partial ’svn dcommit’ with git

Partial ’svn dcommit’ with git

January 26th, 2010 admin Leave a comment Go to comments

My current project uses SVN but as I work remotely I find it useful to use git’s svn support and commit from time to time when I happen to be connected etc. I find that I do less ‘bogus’ commits using git to stage the commits and then send with dcommit.

I found this nice article about how to send only a partial set of changes. Essentially the idea is to use ‘git rebase -i HEAD~n‘, mark the last change you want to send as edit, and then run git svn dcommit. Finally run git ‘rebase --continue‘ to go back to the head.

Neat!

Categories: coding Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.