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

后端 未结 5 1901
栀梦
栀梦 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:35

    For anyone who comes across this later, and uses TortoiseSVN, here is how to do the same thing...

    1. Right-click on the folder that you no longer want checked out (this is the folder you want to exclude)
    2. From the context menu, choose "TortoiseSVN > Update to Revision..."
    3. In the window that pops up, set the "Update Depth" dropdown box to "Exclude"
    4. Click "OK". SVN will automatically remove that directory from your drive now.

    (Note: This was done with TortoiseSVN 1.7.5, and may vary for other versions.)

提交回复
热议问题