- Clone an svn repository with entire history.
git svn clone --prefix=origin/ svn://svn.dd-wrt.com/DD-WRT
Note: This can be very time-consuming on a large svn repository, esp. when the network connectivity is poor.
git svn clone --prefix=origin/ -r 28015:HEAD svn://svn.dd-wrt.com/DD-WRT
cd DD-WRT while ! git svn fetch; do sleep 10; done
git svn rebase
git checkout `git svn find-rev r28015`
git checkout master
git clean -n git clean -f