next up previous contents
Next: Reverting a deleted file Up: Basic Operations Previous: Creating a new directory   Contents

Copying, moving and deleting directories and files

Subversion supports these three operation with history preserving. They are similar to svn mkdir - they can work both in the working copy or directly in the repository:

$ svn copy https://localhost/svn/repo1/helloworld/trunk/docs
           https://localhost/svn/repo1/helloworld/trunk/doc

When we update the local copy we receive the newly created directory doc. Now we will delete it from the local copy:

$ svn rm doc
D         doc
$ svn commit -m "delete dir"
It this case the directory is not directly removed from the repository - we have to commit the change.



Ivan Ivanov 2008-04-21