Pagine

Monday 30 January 2017

SVN tutorial n 28 - switch

The "svn switch" command updates working copy to a different URL.
The synopsis is the following:
 svn switch <svn_url>[@<svn_rev>] [<local_path>]
This is the Subversion way to make a working copy begin tracking a new branch. If specified, <svn_rev> determines in which revision the target is first looked up.
If --force option is used, unversioned obstructing paths in the working copy do not automatically cause a failure if the switch attempts to add the same path.
The --relocate option is deprecated as of Subversion 1.7. Use svn relocate [1] to perform working copy relocation instead.

Example:

 svn switch http://mysvnrepo/svn/myproject/branches/mybranch .

Link

No comments:

Post a Comment