svn repository checkout without branches

给你一囗甜甜゛ 提交于 2019-12-22 05:39:23

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!