SVN command line

Source: Internet
Author: User
Tags eol

Source: Click to open the link

Bash> SVN help

Usage: SVN <subcommand> [Options] [ARGs]
Subversion command line client, version 1.2.0.
Use "SVN help <subcommand>" to display auxiliary instructions for sub-commands.
Most sub-commands can accept file or directory parameters and perform progressive access to directories.
If no parameter is specified for the command, it is imported from the current directory (including) by default.
Recursive row access.

Available sub-commands: (abbreviated as subcommands in parentheses)
Add
Blame (praise, annotate, Ann)
Cat
Checkout (CO) // copy a working version from the source code library
Cleanup //
Commit (CI) // submit changes to the current work copy. Code conflicts may occur in this area.
Copy (CP) // make a copy of the work copy.
Delete (Del, remove, RM) // delete files or directories on the local or SVN server response.
Diff (DI) // compares the differences between a file and the corresponding file in the library, similar to the diff command of the system. Parameter: file name.
Export // export a directory tree copy without version control. It is generally used to export the release or to run the version.
Help (?, H)
Import // import the files in the current local directory to SVN response.
Info // copy the information of a file (folder) in the current directory, such as URL, version, and modification date. Parameter: file to be viewed (folder)
List (LS) // list the files in the current working copy, which is equivalent to the LS command of the system, but can only be used in the working copy directory.
Lock
Log
Merge // apply the differences between the two sources to the working copy path.
Mkdir // create a new folder locally 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 copy the current status, which is compared with the source code on the svn server.
Switch (SW)
Unlock
Update (up) // synchronize the svn server files to the local device

Subversion is a version control system tool.
For more information, see http://subversion.tigris.org/

> 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 will be used
The destination. If multiple URLs are given each will be checked
Out into 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:
Number revision number
"{" Date "}" revised date after the specified time
"Head" latest Archives
"Base" baseline, working entry based on Revision
"Committed" before final submission or baseline
Before the "Prev" revision is submitted
-Q [-- Quiet]: print as few as possible
-N [-- Non-recursive]: operate only in a single directory
-- Username Arg: Specify the user ARG
-- Password Arg: SpecifiesPasswordARG
-- No-auth-Cache: Do not buffer User Authentication
-- Non-interactive
-- Config-Dir Arg: Read the user configuration file from the directory ARG
-- Ignore-externals: Ignore externals Definitions

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

Valid options:
-- Targets Arg: transfer the file Arg content as the attachment Parameter
-N [-- Non-recursive]: operate only in a single directory
-Q [-- Quiet]: print as few as possible
-- Config-Dir Arg: Read the user configuration file from the directory ARG
-- Force: Force operation
-- Auto-props: Make automatic attributes valid
-- No-auto-props: Invalid automatic attribute

(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 with any structure under the Directory

Sh> SVN import http: // localhost/SVN/hehehehhe-M = sdfsdf // it can be in any directory, recursively import the files in the current folder to the hehehhhe directory of SVN response.

Sh> SVN Export
Export: generate a directory tree copy without version control.
Usage: 1. Export [-r rev] URL [@ pegrev] [path]
2. Export [-r rev] path1 [@ pegrev] [path2]

1. Export a clean directory tree to path from the file library specified by the URL. If you specify
Rev, the content is the revision; otherwise, it is the head revision. If path
If it is omitted, the last part of the URL is used as the local directory name.

2. In the Work copy, export a clean directory tree from the specified path1 to path2. If
If rev is specified, it will be exported from the specified revision; otherwise, it will be exported from working. If
If path2 is omitted, the last part of path1 is used as the local directory name.
If no rev is specified, all local modifications are maintained, but not included.
Version Control files are not copied.

If pegrev is specified, it is searched from the specified version.

Valid options:
-R [-- Revision] Arg: Arg (some commands require arg1: arg2)
The revision parameters can be:
Number revision number
"{" Date "}" revised date after the specified time
"Head" latest Archives
"Base" baseline, working entry based on Revision
"Committed" before final submission or baseline
Before the "Prev" revision is submitted
-Q [-- Quiet]: print as few as possible
-N [-- Non-recursive]: operate only in a single directory
-- Force: Force operation
-- Username Arg: Specify the user ARG
-- Password Arg: SpecifiesPasswordARG
-- No-auth-Cache: Do not buffer User Authentication
-- Non-interactive
-- Config-Dir Arg: Read the user configuration file from the directory ARG
-- Native-EOL Arg: use an EOL tag different from the standard
The file system tag is a local SVN: EOL-style attribute.
Arg may be one of the following: 'lf ', 'cr', 'crlf'
-- Ignore-externals: Ignore externals Definitions

Eg.
Sh> SVN export http: // localhost/SVN/hehehehhhe

Sh> SVN merge
Merge: Apply 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 URLs are specified to Revision n and M. These two are used
The source of the comparison. If no revision is specified, the default value is head.

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

3. In the third form, the source can be a URL or work copy project, and the latter uses the corresponding
URL ). The address (URL) of the rev. Rev is based on the path of the Revision n and M.
Comparison. If rev is not specified, it is assumed as head.

Wcpath is the working copy path that accepts changes. If wcpath is omitted, the default value is
'.', Unless the main name of the source matches 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:
Number revision number
"{" Date "}" revised date after the specified time
"Head" latest Archives
"Base" baseline, working entry based on Revision
"Committed" before final submission or baseline
Before the "Prev" revision is submitted
-N [-- Non-recursive]: operate only in a single directory
-Q [-- Quiet]: print as few as possible
-- Force: Force operation
-- Dry-run: Operation attempted but not modified
-- Diff3-cmd Arg: Use Arg as the merge command
-- Ignore-ancestry: original information is ignored during merge.
-- Username Arg: Specify the user ARG
-- Password Arg: SpecifiesPasswordARG
-- No-auth-Cache: Do not buffer User Authentication
-- Non-interactive
-- Config-Dir Arg: Read the user configuration file from the 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.