Simple SVN usage

Source: Internet
Author: User
Tags subversion client svn client tortoisesvn
TortoiseSVN is a free open-source client of the Subversion version control system, which can manage files and directories over time. Files are stored in the central version Library. apart from remembering every modification to files and directories, the version library is very similar to a common file server. You can restore files... TortoiseSVN is a free open-source client of the Subversion version control system, which can manage files and directories over time. Files are stored in the central version Library. apart from remembering every modification to files and directories, the version library is very similar to a common file server. You can restore the file to a previous version, and check the history to find out which modifications have been made and who has made the changes.

  • How to install Tortoise SVN?
Obtain the Tortoise SVN installation file from the server on the Tortoise SVN official website. The latest is the TortoiseSVN-1.7.4, the entire installation process on Windows, as long as you click [next] until [complete.

 

 

  • How do I obtain a known SVN project?

 

To obtain an SVN database, three prerequisites are required:
  1. The Tortoise SVN client has been installed and can be used properly;
  2. Obtain the known SVN project path (http: // 192.168.58.102: 8080/svn/test/trunk );
  3. . Obtain the SVN account name (test) and password (test );
First, obtain the SVN repository. Step 1: Right-click the repository and select [SVN Checkout...]. the following dialog box is displayed, and enter the test project path in URL repository;
Step 2: during the checkout process, you will be prompted to enter the account and password. you can check [save authentication] in the lower-left corner to avoid multiple questions and entering the password account;
Step 3: Click OK to download the SVN repository.
  • How to add a file?
When writing code, you often encounter new source files. to submit new files on SVN, perform the following operations: Step 1: Right-click the modified file, click Tortoise SVN> Add... ]. If save authentication is not checked during the first checkout, SVN will prompt you to enter your account and password again; Note: The file is not actually added to the SVN repository.Step 2: submit the new file to the SVN repository, right-click the new file, and click [SVN Commit... ]. submit the new file. Step 3: confirm that SVN has successfully submitted the modification;

 
  • How do I submit the modified files?
Step 1: Right-click the modified file and click [SVN Commit... ]. If save authentication is not checked during the first checkout, SVN will prompt you to enter your account and password again;
Step 2: confirm that SVN has successfully submitted the modification;


  • How can I compare the version differences between working copy and SVN databases?
Right-click the file to be compared and choose TortoiseSVN> Diff to compare working copy with the latest SVN database version.


  • How to use SVN to generate a patch file?
Step 1: Right-click the source file to generate the patch and click TortoiseSVN> Create Patch ...];
Step 2: Select the patch generation path in the pop-up window, save the patch file, and click OK to generate the patch for the file.


  • How do I roll back the changes on working copy?
Step 1: if an exception occurs to the current working version file, you can roll back the file. right-click the file to be rolled back and choose TortoiseSVN> Revert ...]
Step 2: view the list of rollback files and click OK to start rollback. Step 3: confirm the rollback result.

  • How to modify Merge source code?
If the SVN code fails to be submitted, it is often because someone has updated the SVN file, which causes the submission to fail, as shown below:


Step 1: Update the SVN submission failure file, right-click the File, and select SVN Update ];

Step 2: resolve multiple conflicting files. right-click the conflict file and choose TortoiseSVN> Edit conflicts ];
Step 3: edit the conflict part with TortoiseMeger to solve the conflict;
Note: The code is resolved as follows.
Step 4: Use TortoiseSVN to Mark and resolve the conflict. on the menu bar, choose Edit> Mark as resolved ];
Step 5: Right-click the submit file and select [SVN Commit ...]
Step 6: confirm that SVN is submitted successfully.


References
TortoiseSVN (A Subversion client for Windows) help document, Stefan Küng, Lübbe Onken, Simon Large
Related Article

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.