Subversion command Summary

Source: Internet
Author: User

Common options of SVN commands

-- Targets list reads the list and interprets it as a list of parameters to be operated

-- Non-recurisive,-N only operates on a single directory, not a subdirectory

-- Verbose and-V print additional information

-- Quiet,-Q prints as little information as possible

-- Username, name indicates the user name used for connection authorization

-- Password, pawd specifies the password to be used

-- No-auth-Cache do not cache identity tokens

-- Non-interactive do not prompt for additional information

-- Config-Dir dir read user configuration from Dir

-- Editor-CM cmd uses cmd as the log message editor.

SVN add

Add the file and directory name to the version control system. They will be added to the project repository at the next submission.

SVN add path

-- Auto-Props automatically sets file attributes when adding them

-- No-auto-Props disable auto attribute settings

SVN blame

Displays the version and author information of each row of a file.

-- Revision,-r Rev: if the specified rev is a single version, the author information of this version is displayed. If the range is REV1: Rev2, the information of the author of Rev2 is displayed, but only the version to Rev1.

SVN cat

Output the content of the specified file or URL

SVN cat target...

-- Revision,-r Rev

SVN checkout

Pull a copy of work from the project warehouse

SVN checkout URL... Path

If no path is specified, the name of the local directory to be checked out uses the base name of the URL.

SVN cleanup

Clear work copies, remove locks, and complete unfinished operations.

SVN cleanup path...

SVN commit path

Copy the changes from your work to the project repository.

-- Message,-m msg uses MSG as the log message for submission.

-- File,-F file uses the file content as the commit Log message.

-- No-Unlock: do not release the lock upon submission.

SVN copy

Make copies including history in work copy or project warehouse

SVN copy SRC dest

SRC and DEST can be the path or URL of the working copy (WC.

Src dest effect ......

WC copy and add

Wc url: submit a copy of WC to URL immediately.

Url wc: sign out the URL to WC and add

The URL is completely copied from the server. It is used to create branches and tag

-- Revision,-r Rev: version of the SRC to be copied. It is meaningful only when SRC is the URL of the Project repository.

SVN Delete target

Delete files or directories from the project repository. If the target is a file or directory in the work copy, it is removed from the work copy and is expected to be deleted at the next submission. If the target is the project repository URL, It is deleted from the project repository through an immediate submission.

-- Message,-M msg

-- File,-F File

SVN diff

Show the differences between two paths

SVN diff-r REV1: Rev2 target...

SVN diff oldurl newurl

SVN Export

Create a copy without a version record.

SVN export-r rev URL path

Export a clean directory tree to path from the specified URL of the Project repository. If the rev parameter is specified, export the rev version. Otherwise, the latest version is everywhere.

SVN Import

Submit a non-version file or tree to the project repository.

SVN import path URL

SVN info

Displays information about a file or directory.

SVN list

List the number of directories in the project repository.

SVN lock

Locking files prevents other users from submitting changes.

SVN Lock target

-- Message,-m msg uses MSG as the lock message

-- Force locks are successfully applied, and the lock is stolen from other users or work copies.

SVN log

Displays the log messages of some versions or files.

-- Stop-on-copy: Do not traverse the copy when traversing the history (it is useful for finding the starting point of the Branch)

SVN merge

Apply the differences between the two sources to the work copy path.

SVN merge-r REV1: Rev2 source wcpath

SVN mkdir

Create a new directory under Version Control

SVN mkdir target

SVN move SRC dest

Move or rename a file or directory in a work copy or project repository.

-- Revision,-r rev uses version REV as the source to execute this move.

SVN propdel

Delete file or directory attributes

SVN propdel propname path...

SVN propedit

Edit file or directory attributes

SVN propedit propname path...

SVN propget

Print the attribute values of a file or directory

SVN propget propname path...

-- Strict disable additional line breaks and other beautification measures (it is useful to redirect binary attributes to a file)

SVN proplist

List all attributes of a file or directory

-- Verbose

-- Recursive

-- Revision,-r Rev: list the attributes defined by path in version rev.

SVN propset (pset, PS)

SVN propset propname propval path...

-- File,-F file reads the file content and uses it as the attribute value.

-- Recursive

-- Encoding ENC uses the value as the character set encoded with ENC

SVN resolved

Remove conflicting working copy files or directories

-- Recursive

SVN revert

Restore a copy of a file (undo the latest local modification)

SVN revert path command does not require network connection

-- Recursive

SVN status

Print the status of the file or directory in the work copy.

SVN status path...

-- Show-updates,-u contact the server to display the update information

-- No-ignore ignores the default settings and SVN: Ignore items set in the ignore attribute

-- Non-recursive,-n

-- Verbose,-V

SVN Switch

Copy the job to another URL.

SVN switch URL path

Update a work copy to make it use the new URL of the Project repository. This behavior is similar to SVN update and is a way to copy the work to the branch or tag in the same project repository.

-- Revision,-r rev switched to version Rev

-- Non-recursive,-n

-- The diff3-cm uses cmd as the merge command

SVN unlock

Unlocks the URL of a copy file or project repository.

SVN unlock target...

-- Force breaks down the existing lock on the target, even if it is not owned by the current work copy.

SVN update

Copy the changes from the project repository to work.

SVN Update PATH...

-- Revision,-r rev updated to version Rev

-- Non-recrusive,-n

Diff3-cmd

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.