SVN: Can you remove directories from a local checkout only (not from the repository)?

后端 未结 5 1903
栀梦
栀梦 2021-01-31 01:57

Assume that you have a directory under subversion control, that contains some files and tons of subdirectories, like that:

file1.txt
file2.txt
file3.txt
dir1/
di         


        
5条回答
  •  太阳男子
    2021-01-31 02:53

    With svn 1.6, --set-depth is the answer.

    With svn < 1.6, you can get sparse checkouts by abusing svn switch: Create an empty directory somewhere in your repository, and switch the subdirectories you don't need right now to point to that instead of their "real" URL.

提交回复
热议问题