The SVN client command is 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.
Please use "SVN help <subcommand>" to display a secondary description of the subcommands.
Most subcommands can accept file or directory parameters and recursively access the directory.
If no parameters are given to the command, the default will be from the current directory (included) into the
Row recursive access.

Available subcommands: (in parentheses are shorthand for subcommands)
Add
Blame (praise, annotate, Ann)
Cat
Checkout (CO)//Remove a copy of a working version from the source repository
Cleanup//
Commit (CI)//Submit changes to the current working copy. There is a possibility that code conflicts are present in this place.
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 the corresponding file in the library, similar to the system diff command. Parameters: File name.
Export//Exports a copy of a directory tree without versioning. Typically used to export a release, or a running version.
Help (?, h)
Import//Imports files from the local current directory into SVN response.
Info//information about a file (folder) in the working copy of the current directory, such as URL, version, date modified, etc. Parameters: Files to see (folder)
List (LS)//lists the files under the current working copy, equivalent to the system's LS command, but only 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 your 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 state of the working copy, as compared to the source code on the SVN server.
Switch (SW)
Unlock
Update (UP)//Synchronize 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 first
Looked up.

If PATH is omitted, the basename of the URL would be used as
The destination. If multiple URLs is given each would be checked
Out to a sub-directory of 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:
Digital revision number
"{" Date "}" revision date after the specified time
The latest archive of "HEAD"
"Base" baseline, revision-based work item
"COMMITTED" before the last commit or baseline
Before the "PREV" revision was submitted
-Q [--quiet]: print as little as possible
-N [--non-recursive]: operation in a single directory only
--username arg: Specify user arg
--password ARG: SpecifiesPasswordARG
--no-auth-cache: Do not buffer user authentication
--non-interactive: Do not interact with hints
--config-dir arg: Read user profile from directory arg
--ignore-externals:ignore externals Definitions

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

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

eg. (The following command must be run in 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//In any directory, the file under the current folder can be recursively imported into the SVN response hehehhhe directory.

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

1. From the repository specified in the URL, export a clean directory tree to PATH. If there is a specified
REV, the content is the revised version, or the HEAD revision. If the PATH
If omitted, the last part of the address (URL) will be used as the local directory name.

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

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


Valid options:
-R [--revision] Arg:arg (some commands require ARG1:ARG2)
The revision parameters can be:
Digital revision number
"{" Date "}" revision date after the specified time
The latest archive of "HEAD"
"Base" baseline, revision-based work item
"COMMITTED" before the last commit or baseline
Before the "PREV" revision was submitted
-Q [--quiet]: print as little as possible
-N [--non-recursive]: operation in a single directory only
--force: Forcing operations to run
--username arg: Specify user arg
--password ARG: SpecifiesPasswordARG
--no-auth-cache: Do not buffer user authentication
--non-interactive: Do not interact with hints
--config-dir arg: Read user profile from directory arg
--native-eol ARG: Use a different EOL tag than the standard
The system token 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 differences between two sources to the working copy path.
Usage: 1, merge Sourceurl1[@n] sourceurl2[@m] [Wcpath]
2. 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 revision N and M. These two are as
The source of the comparison. If no revision is specified, the default is HEAD.

2. In the second form, the URL of the working copy path corresponding to two sources is defined to
The source of the comparison. A revision must be specified here.

3. In the third form, SOURCE can be a URL or a working copy project, which uses the corresponding
Address (URL). The address (URL) of the Revision Rev will be in the path that it exists in the revision N and M
Comparison. If REV is not specified, it is assumed to be HEAD.

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

Valid options:
-R [--revision] Arg:arg (some commands require ARG1:ARG2)
The revision parameters can be:
Digital revision number
"{" Date "}" revision date after the specified time
The latest archive of "HEAD"
"Base" baseline, revision-based work item
"COMMITTED" before the last commit or baseline
Before the "PREV" revision was submitted
-N [--non-recursive]: operation in a single directory only
-Q [--quiet]: print as little as possible
--force: Forcing operations to run
--dry-run: Try the operation without modifying
--diff3-cmd ARG: Use arg as the merge command
--ignore-ancestry: Ignore original information when merging
--username arg: Specify user arg
--password ARG: SpecifiesPasswordARG
--no-auth-cache: Do not buffer user authentication
--non-interactive: Do not interact with hints
  --config-dir arg        : Read 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.