Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN how to remove local copy only?

Here is the scenario ... I am also using tortoise SVN ...

I can create a new folder and do a checkout with the "only this item" option ... this will checkout just the top level folder, I can then go into the repo browser and select any subfolder i want to "update to revision" (in the repo browser right click, select update to revision) ... this will bring down only that subfolder ...

Is there a way to remove the folder without removing it from the repository?

If not, my other option is to simply checkout the subprojects individually (this might be the best solution), lets see if anyone has an answer to the above.

like image 243
farinspace Avatar asked Jul 23 '10 19:07

farinspace


People also ask

How do I delete a local svn repository?

Right click the any folder and choose TortoiseSVN -> Repo Browser. Then point to your local repository in the URL field. Once open you could be able to browse the repo, and with a right click, delete the folder.

How do I Unversion a file in svn?

In existing posts (see How to "unversion" a file in either svn and/or git) the accepted answer is generally to run svn rm FILE or svn rm --keep-local FILE , and then set the svn:ignore property if desired.

Can I delete svn checkout folder?

svn directory that you can delete. This will return it to a normal directory which you can clean up. You will need to show hidden files in order to see the .

How do I unlink a directory in svn?

If you are running Windows then you can do a search on that folder for . svn and that will list them all. Pressing Ctrl + A will select all of them and pressing delete will remove all the 'pesky' Subversion stuff.


1 Answers

I'm a bit late to the game but I've just had the same question and not found a satisfactory answer.

The answer I came up with was to do a full checkout then

  1. update to revision...
  2. update depth -> choose items...
  3. untick any items you don't want.

ticking make depth sticky then retains this depth over future updates.

like image 100
alwaysmpe Avatar answered Sep 18 '22 11:09

alwaysmpe