svn - Git downloading trunk using subversion bridge -


i using git subversion bridge check out subversion repository. using command,

get svn clone -s svn://repositoryname/etc 

but our subversion repository massive, many years of development, many branches, etc.

the consequence process dies often, when compressing repository memory usage goes above 1.5 gb, , dies.

so thought perhaps try , check out trunk because going using mostly. tried this,

get svn clone -trunk svn://repositoryname/etc 

but error, use of uninitialized value in pattern match.

can please tell me correct command use checking out trunk only. there known bug / memory leak? using git version 1.7.3.1-preview20201002 on windows.

is there official documentation git , command line options?

this should work:

git svn clone svn://repositoryname/whatever/trunk 

the --trunk option isn't you're looking for. it's way specify name of directory that's typically called "trunk". example, if svn repository used "/main" primary development, "/releases" instead of "/tags" , "/other" instead of "/branches", use instead of -s (--standard) option:

git clone --trunk=main --tags=releases --branches=other svn://repositoryname/whatever 

however, better option may clone repository starting @ particular svn revision number:

git svn clone -r 20000 svn://repositoryname/whatever cd whatever git svn rebase 

clone -r 20000 clone svn revision number 20000. git svn rebase fetch , apply revisions after 20000, you'll left git repository has history beginning @ revision 20000.

the man pages best place go documentation. if don't have them installed, kernal.org's copy nicely formatted: http://www.kernel.org/pub/software/scm/git/docs/. google search "man git svn" bring relevant page quickly.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -