Subversion client operation procedure

Source: Internet
Author: User
Tags subversion client tortoisesvn

Subversion client operation procedure

 

Client operation steps

1. Install tortoisesvn

Install tortoisesvn-1.4.0.7501-win32-svn-1.4.0.msi

2. Create a directory on the local client and right-click check out.

Enter the server repository address in the address bar, for example, http: // 172.24.3.175/SVN/test/


 

3 add: Add a file

1) Right-click the corresponding file in the local folder and execute add

2) Right-click to execute SVN commit

3) if a file with the same name already exists in the corresponding path on the server, the file cannot be commit. The file must be removed from the project management and deleted or renamed in the folder. Otherwise, the project cannot be updated.

 

4. File Modification Process

1) create a local working environment and check out to get the project

2) use ultraedit to open the file to be modified and save it.

Note: If you can confirm that the file has not been modified on the local machine before, you can run update here. SVN will update the latest version on the server to overwrite the version on the local machine, no file conflict is displayed. If you want to view the original file that was overwritten Before update, You need to execute diff.

3) Right-click to execute SVN update. The system displays the code conflict and version number,

 

Open the modified file and you will see that SVN automatically merges the server version with the local machine version, and marks the differences

Note: Do not directly edit and modify automatically merged files. Otherwise, SVN management will be messy!

 

4) Right-click Edit conflicts to solve the version conflict.

Note:

(1) theirs is the latest version on the server, and the version number is rxx,

(2) The upper right part is the local machine version.

(3) The lower part is divided into the conflict editing area. +-indicates the deleted or newly added file. unresolvedconflict! Part is the code conflict part. Right-click "unresolvedconflict !" You can select a server or local version for the cursor. If you have any questions about the color, choose View> Settings> color to view the description.

 

Note: This tool does not have the Undo function. You must note that

 

(4) Save the disk after editing. Use ue to view the source file. You can see that the file's modifier has been removed automatically.

 

5) execute SVN commit

In this case, the file can be submitted.

 

5, diff

Right-click diff and compare the version before and after local modification, regardless of the server version.

 

 

Appendix:

TIPS:

1. In tortoisesvn, show whitespace does not display UNIX Characters During comparison and editing.

2, in maruo, other-> edit user-menu-> file-> binary enable binary mode

 

 

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.