Linux SVN command usage introduction __linux

Source: Internet
Author: User
1. SVN st–help

Status (Stat, ST): Displays the status of directories and files in the working copy.

Usage: status [PATH ...]
When no parameters are specified, only locally modified entries are displayed (no network access).
When you use-Q, only summary information for locally modified entries is displayed.
When you use-u, increase the working version and the version expiration information on the server.
When you use-V, displays the full version information for each entry.
Question mark indicates not within version control

"?: not in the control of SVN; M: Content modified; C: conflicting; A: scheduled to join the repository; K: Locked" 2. Update current working directory

SVN update-r test.php (restores the file test.php in the version library to version 200)
SVN update test.php (update, sync with version library). If the prompt expires at the time of submission, it is because of the conflict, you need to update, modify the file, then clear the SVN resolved, and then commit the commit.
SVN d

Results of UPDATE:
U: Indicates that a file update has been received from the server
G: Indicates that both the local file and the server file have been updated and successfully merged
The others are as follows:
A: Indicates that a file or directory has been added to the working directory
R: Indicates that a file or directory was replaced.
C: Indicates that there is a conflict between the local modification of the file and the server modification 3. Delete file

SVN delete path-m "Delete test Fle"
For example: SVN delete svn://192.168.1.1/pro/domain/test.php-m "Delete test file"
Or simply svn delete test.php and then svn ci-m ' delete test file ', recommend using this
Abbreviation: SVN (del, remove, RM) 4. View Log

SVN log path
For example: SVN log test.php shows all the changes to this file, and its version number 5. View file Details

SVN info Path
For example: SVN info test.php 6. Comparison difference

SVN diff path (compares the modified file to the base version)
For example: SVN diff test.php
SVN diff-r m:n Path (diff for version M and version N)
For example: SVN diff-r 200:201 test.php
Shorthand: SVN di 7. Merge differences between two versions into the current file

SVN merge-r m:n Path
For example, SVN merge-r 200:205 test.php (the difference between version 200 and 205 is merged into the current file, but there is generally a conflict and needs to be addressed) 8. Undo Local Modifications

svn revert path

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.