How do I remove a folder from source control with TortoiseSVN?

前端 未结 13 515
[愿得一人]
[愿得一人] 2020-12-22 18:30

How do I remove a folder from being source controlled with TortoiseSVN?

相关标签:
13条回答
  • 2020-12-22 19:05

    You right click on the directory, go to TortoiseSVN -> Delete. You then right click on the parent directory and SVN Commit... and that will remove the folder.

    0 讨论(0)
  • 2020-12-22 19:05

    Exporting the folder to a new location while "Export unversioned files to" option selected worked great for me. TortoiseSVN removes all the Subversion specific settings and you get a clean folder. Now you can delete the original one and move the new exported folder there.

    0 讨论(0)
  • 2020-12-22 19:06

    I ran the tortoise command "Update to SVN 1.7" which took all the .svn folders and combined them into a single folder. I was then able to delete just the one .svn folder and everything was good to go!

    0 讨论(0)
  • 2020-12-22 19:06

    This is what worked for me:

    1. Right click on the folder/branch that you want to delete and use TortoiseSNV->Delete
    2. Perform a cleanup. I did this from the commandline, svn cleanup <path to the folder to delete including folder name>; otherwise you can do the same right click on the folder and perform a cleanup.
    3. Go to the parent directory of the folder you want to delete and commit the changes.

    This should remove the folder from your working directory and from Subversion.

    0 讨论(0)
  • 2020-12-22 19:12

    Windows Search, set system and hidden files flag... filename ".svn" ... after it searches - sort so all .svn directories are grouped together... highlight - hit delete :)

    0 讨论(0)
  • 2020-12-22 19:14

    If you want to remove the folder from source control but keep it locally, the easiest way would be to

    1. create a backup of the folder (just copy it somewhere else)
    2. follow the instructions for deleting it
    3. restore the folder
    4. tell subversion to "Ignore" the folder

    You should also delete the .svn directory that's kicking around in the folder that you're removing or you'll end up confusing svn/tortoise. You can also do an "Export" for step 1 which will remove any .svn directories for you (if you're doing this for a whole directory tree rather than a single directory, this is a lot more convenient than cleaning the folders out by hand).

    0 讨论(0)
提交回复
热议问题