SVN Client Commands Detailed

Source: Internet
Author: User
Tags auth commit eol prev require svn svn client valid

Bash> SVN Help
Usage: SVN <subcommand> [Options] [args]
Subversion command line client, version 1.2.0.
Use the SVN help <subcommand> to display the auxiliary instructions for the subcommand.
Most of the subcommand accepts file or directory parameters and recursively accesses the directory.
If no arguments are specified to the command, the default will be entered from the current directory (included)
Row recursive access.

Available subcommand: (shorthand for subcommand in parentheses)
Add
Blame (praise, annotate, Ann)
Cat
Checkout (CO)//copy of a working version from the Source Library
Cleanup//
Commit (CI)//Commit changes to the current working copy. This is a place where code conflicts can occur.
Copy (CP)//make copies of a working copy.
Delete (Del, remove, RM)//Remove files or directories on the local or SVN server response.
diff (di)//compares a file to a corresponding file in a library, similar to the system diff command. Parameter: file name.
Export//Exports a copy of the directory tree without version control. Typically used to export a release, or a version that is put into operation.
Help (?, h)
Import//The files in the local current directory are imported into the SVN response.
Info//information about a file (folder) in the working copy in the current directory, such as URL, version, modification date, etc. Parameters: Files to look at (folder)
List (LS)//lists the files under the current working copy, which is equivalent to the system LS command, but can only be used in the working copy directory.
Lock
Log
Merge//Apply the difference between two sources to the working copy path.
mkdir//Create a new folder on the local or SVN respon. Parameter: URL or path
Move (MV, rename, ren)
Propdel (Pdel, PD)
Propedit (Pedit, PE)
Propget (Pget, PG)
Proplist (plist, PL)
Propset (PSet, PS)
Resolved
Revert
Status (Stat, ST)//svn The current status of the work copy, as compared to the source on the SVN server.
Switch (SW)
Unlock
Update (UP)//sync SVN server side files to local

Subversion is a tool for version control systems.
For more information, please refer to http://subversion.tigris.org/



&GT;SVN Co
Checkout (CO): Check out a working copy from a repository.
Usage:checkout url[@REV] ... [PATH]

If specified, REV determines in which revision the URL is
Looked up.

If PATH is omitted, the basename of the URL would be used as
The destination. If multiple URLs are given each would be checked
Out into a sub-directory's PATH, with the name of the sub-directory
Being the basename of the URL.

Valid options:
-R [--revision] Arg:arg (some commands require ARG1:ARG2)
The revision parameters can be:
Number Revision number
"{" Date "}" revision date after the specified time
The recent archives of "head"
Base baseline, work items based on revisions
"Committed" before the last commit or baseline
Before the "PREV" revision is submitted
-Q [--quiet]: print as little as possible
-N [--non-recursive]: Operating only in a single directory
--username arg: Specifying user arg
--password ARG: specifyingPasswordARG
--no-auth-cache: Do not buffer user authentication
--non-interactive: Do not interact with prompts
--config-dir arg: Reading user profiles from directory arg
--ignore-externals:ignore externals Definitions

Sh> SVN add
Add: Put files and directories into version control,
Add to the archive by dispatch. They will be added at the next submission.
Usage: Add Path ...

Valid options:
--targets arg: Pass file arg content as attachment parameter
-N [--non-recursive]: Operating only in a single directory
-Q [--quiet]: print as little as possible
--config-dir arg: Reading user profiles from directory arg
--force: Forcing operations to run
--auto-props: Make automatic properties valid
--no-auto-props: Invalidates automatic properties

eg. (The following command must be run under the Working copy directory)
Sh> svn add test.c//Add a file
Sh> SVN Add test//Add a directory, folder with any structure under the directory

Sh> SVN import HTTP://LOCALHOST/SVN/HEHEHEHEHHE-M=SDFSDF//Can be recursively imported under the current folder into the SVN response hehehhhe directory under any directory.

SH&GT;SVN Export
Export: Produces a copy of the directory tree without version control.
Usage: 1, export [-R REV] url[@PEGREV] [PATH]
2, export [-R REV] path1[@PEGREV] [PATH2]

1, from the URL designated by the archive, export a clean directory tree to PATH. If there is a specified
REV, the content is the revised version, otherwise it is the head revision. If PATH
If omitted, the last part of the address (URL) is used as the local directory name.

2. In the working copy, export a clean directory tree to PATH2 from the specified PATH1. If
If there is a specified REV, it is exported from the specified revision or from WORKING. If
If the PATH2 is omitted, the last part of the PATH1 will be used as the local directory name.
If REV is not specified, all local modifications will be maintained, but not included
Version-controlled files are not replicated.

If Pegrev is specified, the lookup is started from the specified revision.


Valid options:
-R [--revision] Arg:arg (some commands require ARG1:ARG2)
The revision parameters can be:
Number Revision number
"{" Date "}" revision date after the specified time
The recent archives of "head"
Base baseline, work items based on revisions
"Committed" before the last commit or baseline
Before the "PREV" revision is submitted
-Q [--quiet]: print as little as possible
-N [--non-recursive]: Operating only in a single directory
--force: Forcing operations to run
--username arg: Specifying user arg
--password ARG: specifyingPasswordARG
--no-auth-cache: Do not buffer user authentication
--non-interactive: Do not interact with prompts
--config-dir arg: Reading user profiles from directory arg
--native-eol ARG: Using a EOL tag that differs from the standard
The system tag for the file is a local Svn:eol-style property.
ARG may be one of the ' LF ', ' CR ', ' CRLF '
--ignore-externals:ignore externals Definitions

eg.
Sh> SVN export http://localhost/svn/hehehehehhhe

Sh> SVN merge
Merge: Applies the difference between two sources to the working copy path.
Usage: 1, merge Sourceurl1[@n] sourceurl2[@m] [Wcpath]
2, the merge Sourcewcpath1@n sourcewcpath2@m [Wcpath]
3. Merge-r n:m source[@REV] [Wcpath]

1, in the first form, the source URL is assigned to the revision N and M. These two are as
The source of the comparison. If you do not specify a revision, the default is head.

2. In the second form, URLs that correspond to the working copy paths of two sources are defined to
The source of the comparison. Revisions must be specified here.

3, in the third form, SOURCE can be a URL or work copy item, which uses the corresponding
Address (URL). The address (URL) of Rev Rev. will be in the path of revision N and M.
Comparison. If REV is not specified, the head is assumed.

Wcpath is a working copy path that accepts changes. If Wcpath is omitted, the default value is
'. ' Unless the principal name of the source conforms to a file in '. '; In this case, the file
The variance will be applied directly to the file.

Valid options:
-R [--revision] Arg:arg (some commands require ARG1:ARG2)
The revision parameters can be:
Number Revision number
"{" Date "}" revision date after the specified time
The recent archives of "head"
Base baseline, work items based on revisions
"Committed" before the last commit or baseline
Before the "PREV" revision is submitted
-N [--non-recursive]: Operating only in a single directory
-Q [--quiet]: print as little as possible
--force: Forcing operations to run
--dry-run: Try the operation but not modify
--diff3-cmd ARG: Using arg as merge command
--ignore-ancestry: Ignore raw information when merging
--username arg: Specifying user arg
--password ARG: specifyingPasswordARG
--no-auth-cache: Do not buffer user authentication
--non-interactive: Do not interact with prompts
  --config-dir arg       &nbsp: Reading user profiles from directory arg   

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.