Pagine

Thursday 20 October 2016

SVN tutorial n 7 - delete

The svn delete command deletes an item from a working copy or the repository. The synopsis is:
 svn delete <url or path file>
or
 svn del <url or path file>
or
 svn remove <url or path file> 
or
 svn rm <url or path file>
To delete a file or a directory from your working copy use the following command:
 svn delete MyFile.txt 
After that, you can see the local status
 svn stat
The output will be:
 D MyFile.txt
If you want delete the file in repository then you must execute the commit
 svn ci -m "Delete MyFile"
Instead to delete an item from repository, for example, an obsolete branch, use the following command:
 svn delete https://mysvnrep/svn/myproject/branches/myproject-0.0.1 -m "delete obsolete branch" 

No comments:

Post a Comment