Basic subversion configuration and usage (4)

Source: Internet
Author: User
Tags subversion client svn update tortoisesvn
4. Basic client operations
Checkout the project we need. Right-click the folder we intend to use to store the checked items and select "SVN checkout ...".

In the pop-up window, enter the repository URL and the storage path of the file after checkout ,:

Click OK. If no error is reported, the file is successfully checked out from the version library.
The checked folder is marked with a special mark. At this point, the sample folder and Its subdirectories and files are stored in the Subversion management.

Not changed

Changes to existing files

1. Submit the changed File
Once we change a file under the folder, tortoisesvn will replace the file mark with the exclamation mark. If we want to submit the changed file to the version library, right-click the file and select "SVN commit .. ", enter the submitted information and select the files to be submitted in the pop-up window. (We recommend that you submit the files in the top-level directory of all modified files, one-time submission of a change. The atomicity of subversion ensures that there is no incomplete version in the project ). :

Click OK to save the file change information to the version library of subversion.

To confirm that our modifications have been submitted to the version library, right-click the file and choose tortoisesvn-show log.

2. update local copy
Right-click a folder or file and choose "SVN Update". By default, the system updates the selected folder or file to the latest version. To update to a specific version, use tortoisesvn-update to revision. In the displayed window, select revision and enter the version to be updated"


(Note: each time the Subversion submits a snapshot corresponding to a version database tree, it is a snapshot that is updated to a version database tree when it is updated to a revision .)

3. Add a new file or folder
Right-click a new file or file and choose tortoisesvn-add .."

System pop-up Confirmation window

Click OK and the folder will be marked with a plus sign. At this time, the folder has not been added to the version library. You need to submit it, right-click "SVN commit .. ", the selected files or folders will be added to the version library.

4. delete files or folders
Right-click the file or folder to be deleted, select "tortoisesvn-Delete", and submit the file or folder. Then, the selected file or folder is deleted from the version library.

5. Rename
To rename a file, it must be done by tortoise. You cannot rename the file directly on the operating system. Right-click the file or file to be renamed and choose tortoisesvn-Rename .. ", enter a new file or folder name in the pop-up window, click OK, a new file or folder will be added, and then submit them. (Rename is a process of copying the original folder and deleting the old folder to submit the new folder and keep the historical records ).

6. Undo the changes.
After editing some files or files, if you need to return the version before modification, right-click and choose tortoisesvn-revert .. to restore the file to the version before modification.

7. file update conflict handling
When an update conflict occurs, subversion will generate three files,
Filename. Mine
The file you updated does not have a conflict sign, but it is the latest change. (If the Subversion deems that the file cannot be merged, the. Mine file will not be created because it is the same as the working file .)
Filename. roldrev
This is the base version file before you perform the update operation, that is, the version you did not change after the last update.
Filename. rnewrev
This is the version that your subversion client has just received from the server. This file corresponds to the head version of the version library.
Here, oldrev is the revision version in your. SVN directory, and newrev is the version number of the head in the version library.

The conflicting file content will be marked by ">>>" in the conflict, and you can choose to merge the file content by yourself.

After the conflict is resolved, right-click and select "tortoisesvn-Resolved..." to delete the three files generated by the Subversion deletion conflict. Then, you can submit the file. (You can also manually delete these three files .)

8. Others
, Corresponding
Show log displays the log information of files or folders.
Repo-browser version Library
Check for modifications check the information of all modified files
Revision graph Graphical Version display

9. Change the verified user
After saving the verification information, if you need to log on to another user, right-click and select tortoisesvn-setings, and select Save data from the options on the left ", click the Clear button next to authentication data to clear the cached authentication information. You will be asked to re-enter the user name and password upon next access.

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.