Linux svn management tool commands you don't know

Source: Internet
Author: User

In the previous article, we introduced some frequently used commands and skills. In this article, we will introduce several uncommon commands in Linux svn with examples.

List of files and directories in the version Library

Svn list path: displays all files and directories in the path directory that belong to the version library. Short for: svn ls

Create a new directory under Version Control

Svn mkdir: Create a new directory under version control.

Usage: 1. mkdir PATH... 2. mkdir URL...

Create a version control directory.
1. Each directory specified by the working copy PATH will be created on the local end and added to the new
Scheduling to wait for the next submission.
2. Each directory specified with a URL is created by submitting it to the repository immediately.
In both cases, all the intermediate directories must exist in advance.

Restore local modification

Svn revert: restore the original unchanged working copy file (recover most local modifications ).

Revert: Usage: revert PATH...

Note: The sub-commands do not access the network and will release the conflict. But it won't be restored.
Deleted directory

Code library URL change

Svn switch (sw): update the working copy to different URLs.

Usage: 1. switch URL [PATH] 2. switch-relocate from to [PATH...]

1. update your work copy and map it to a new URL. The behavior is similar to "svn update" and
Merge files on the server with local files. This maps the work copy to a branch or tag in the same warehouse.
Method.

2. Rewrite the URL metadata of the working copy to reflect the changes on the simple URL. When the root URL of the Repository changes
(For example, the solution name or host name change), but the working copy is still mapped to the same directory in the same repository.
This command updates the correspondence between the working copy and the warehouse.

Resolve Conflicts

Svn resolved: the "Conflict" Status of directories or files that remove working copies. Usage: resolved PATH... Note: subcommands do not follow the syntax to resolve conflicts or remove conflicting tags. They only remove conflicting files and then allow the PATH to be submitted again.

Output the content of the specified file or URL

Svn cat target [@ version]… If a version is specified, search for it from the specified version. Svn cat-r PREV filename> filename (PREV is the previous version, you can also write a specific version number, so that the output result can be submitted)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.