I am migrating SVN to GitHub using git-svn, only migrating the master(trunk) and only including the latest n revisions.The following command might work:
git svn clone -s -r$HeadMinusN:HEAD some/svn/repo
however, instead of manually calculate the revision number by minus HEAD-Revision by N, do I have a way that acts like as the --depth
option in git command.
Thanks