问题
I have to checkout a repository that has 8 branches which I don't wont to download each branch size ~400MB. Only need to checkout the folder structure and the trunk.
repo/trunk
repo/tags/<do not download content of this directory>
repo/branches/<do not download content of this directory>
Any idea? Prefer command line use.
回答1:
You want to use Subversion's sparse directories feature.
svn co --depth immediates URL_TO_REPOSITORY PATH_TO_WORKING_COPY
svn update --set-depth infinity PATH_TO_WORKING_COPY/trunk
Or, just check out the trunk
directory, if you're not going to work with the tags or branches at all.
来源:https://stackoverflow.com/questions/20610783/svn-repository-checkout-without-branches