How to use the SVN client under Linux __linux

Source: Internet
Author: User
Tags diff svn svn client svn update
First, SVN introductionSVN Library Address Description:
HTTPS: Protocol is a network protocol constructed by Ssl+http protocol which can encrypt transmission and authentication.
Server IP
Example: YLQZQF: Warehouse Name
  
Two, svn function description 1. Checkout (check out)Function: Remove existing files from the SVN library.
Command-Line Operations:
Create a workspace locally, create an empty folder
$>mkdir filename
Execute command under new folder: SVN checkout Path (path is the SVN address) (The shorthand Command SVN co), for example:



2. Submission (commit)Function: Submit the modified files or newly added files to the server in the working copy, make the modification come into effect, and after the others update, you can get the changes.
Command-Line Operations:
Submit after modification of a file in the version control list
Command: SVN commit–m "Log Info" file to submit (Shorthand command svn ci)
$>SVN commit–m "Log Info" file
Add a new file to the SVN library
First add the file to the version control List, command: SVN add File
$>SVN Add File
And then "SVN commit"
3. Delete file (svn delete)Function: Delete false or unwanted files.
Command-Line Operations:
Command: SVN delete path-m "Delete Reason"
$>SVN Delete http://-m "Delete Reason"
Then in the local SVN update, the local corresponding file will be deleted.
4. Updates (update)Features: Get other users to make changes to the file, with their own changes to the file merged to ensure that the local files are always up-to-date.
Command-Line Operations:
Default update to latest version
Command: SVN update file (shorthand command svn up)
$>SVN update file
Update to the specified version
$>SVN update–r m file
5. View log (svn log)Function: View the history of a directory or a file.
Command-Line Operations:
Command: SVN log file
$>SVN log File
6. Compare Files (svn diff)Function: Compare the changes in a file in the SVN library with a different version.
Command-Line Operations:
-command: SVN diff file
$>SVN diff–r m:n file.c
(M, n is the version number compared)
7.Svn Restore and fallback (svn revert/svn merge)Features: SVN restore (svn revert) restore in the working copyFiles that have been added or modified that have not yet been submitted;
The fallback (SVN merge) will be submitting to the SVN libraryVersion is restored to the specified version.
Command-Line Operations:
SVN restore:
Command: SVN revert file
$>svn revert file (the directory or file to restore the modification)
Fallback, needing to be rolled back by the merged method
Command: SVN merge–r m:n Path
$>SVN merge–r m:n Path (directory or file to be rolled back)
(Back to n version from M version)
Then submit (SVN commit)
8. Relocation (relocate)Function: After the SVN server has replaced the address, point to the new SVN URL.
Command-Line Operations:
Command: SVN switch--relocate original SVN library address new SVN address
$>SVN Switch--relocate original SVN library address new SVN address
9. Other Skills1. Export: Use this feature to obtain a copy of work without SVN control information, the exported file does not have an. svn file, submission cannot be performed directly
2. Import (Import): Imports local files into the server, when used in the initial SVN repository directory
3. Cleanup (svn cleanup): When the subversion operation is interrupted, some residual operational information is retained in the working copy, which requires cleanup to work again;
4. View file or directory status (SVN status): View the status of files and subdirectories in a directory in the working copy, "not shown in normal condition;?: not in SVN control; M: Content modified; C: conflicting; A: scheduled to join the repository; K: Locked


third, the use of SVN specifications 1. Log Writing specificationThe length of the log content requires more than 10 characters, that is, more than 5 characters;
Log content requirements to reflect the operation of the content, such as: increase * * * * Function/repair * * * problem/delete * * * function
Submit Frequency
Require compilation to be submitted once after it has passed

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.