How do I only Checkout (pull down) only parts of an SVN tree with TortoiseSVN?

后端 未结 5 781
渐次进展
渐次进展 2021-01-30 12:39

I\'m using TortoiseSVN and I want to do a Checkout of an existing repository into a local directory. However, I only want to pull down certain portions of the file tree. Is th

5条回答
  •  野性不改
    2021-01-30 13:19

    Expanding on autonomy's answer from above ...

    If you have checked out a whole project and later want to exclude certain folders or files from it....

    1. Right click on the parent directory that contains the dir/file you want to exclude
    2. TortoiseSVN -> Update To Revision...
    3. From the Update Depth drop-down box select Exclude and the click on "Choose items..." and
      • select the items you want to keep
      • and deselect the items you want to exclude
      • then press OK & OK again

    That should delete the directories/files you have deselected and exclude them from further updates. If you ever need the directory back, repeat the process and change your selection.

提交回复
热议问题