Pagine

Wednesday 26 October 2016

SVN tutorial n 9 - move

The svn move command move a file or directory. The synopsis is:
 svn move <src> <dst>
or
 svn mv <src> <dst>
The <src> and <dst> can be local path or url.

Examples:

Use move command in your working copy
 svn move myfile.txt myfile2.txt
A myfile2.txt
D myfile.txt
Use the commit command to update the svn repository  
svn ci -m "move example"
Committed revision 1233
Use move command with url
 svn move -m "move example 2" https://mysvnrepo/svn/trunk/myfile.txt https://mysvnrepo/svn/trunk/myfile2.txt
Committed revision 1234

No comments:

Post a Comment