When working with a subversion repository I often miss the use git features. However, it is possible for git to speak the subversion protocol:
Cloning the initial repository
$git svn clone svn://svn.freebsd.org/base/head
Resuming an interrupted git svn clone
It is really annoying when you start a git svn clone process overnight and come back to find that it stopped in the middle. Luckily, there is a really simple way to recover - without spending hours to redownload what you already have.
$git svn fetch
$git svn rebase
Committing the final patch
There are a lot of workflows for this, but I prefer the cherry-pick approach:
$git checkout master
$git svn rebase
$git cherry-pick commit-id
$git svn dcommit
No comments:
Post a Comment
Have something you want to say? You think I'm wrong? Found something I said useful?
Leave a comment!