TortoiseSVN client usage instructions
TortoiseSVN is not an independent Window Program. Instead, it is integrated into the windows context menu and briefly describes the menu items of TortoiseSVN.
01. SVN Checkout (SVN removal)
Click SVN Checkout. A check-out prompt box is displayed. In the URL of repository input box, enter the server repository address, enter the path for local copy, and click OK, check the configuration library on the server.
02. SVN Update (SVN Update)
If the configuration library already has a local copy of work, you only need to execute SVN Update to obtain the latest version. Click SVN Update. The system prompts the Update box. Click OK to Update the latest version of the server.
03. Import)
Select the directory to be submitted to the server, right-click TortoiseSVN ---- Import, the system prompts the Import box, enter the server repository address in the URL of repository input box, and enter the Import log information in the Import Message input box, click OK to import the file to the server repository.
04. Add (Add)
If multiple files and folders need to be submitted to the server, we can add these files to the submission list first. To submit all the files at a time ,, you can select the file to be submitted and click submit (SVN Commit) to submit all the files to the server at one time.
05. Resolving Conflicts (conflict resolution)
Sometimes you update files from the archives in conflict. A conflict occurs when both of them modify a part of the file. Conflicts can only be resolved by humans rather than machines. When a conflict occurs, you should open the conflicting file and search for rows starting with <. The conflict part is marked:
<Filename
Your changes
========
Code merged from repository
>>>>>>> Revision
Subversion generates three additional files for each conflicting file:
Filename. ext. mine
The local file before the update.
Filename. ext. rOLDREV
The basic version you modified.
Filename. ext. rNEWREV
The latest version obtained from the archive during the update.
Use the Edit Conflict command in the shortcut menu to solve the Conflict. Then, execute the Resolved command from the shortcut menu and send the changes to the archive. Please note that the solution command does not resolve the conflict, but simply deletes the filename. ext. mineandfilename. ext. r * file and allows you to deliver it.
06. Check for Modifications (Check for updates)
Click Check for Modifications. The system list displays the status of the files and folders to be updated.
07. Revision Graph (version branch chart)
View the branch and version structure of the file. You can click Revision Graph to display the version branch in a graphical form.
08. Rename (renamed)
SVN Supports Renaming files. Click Rename. The file name input box is displayed. Enter a new file name, click OK, and submit the changes to Rename the file.
09. Delete (Delete)
SVN supports file deletion, which is simple and convenient. Select the file to be deleted, click Delete, and submit the deletion operation to the server.
10. Moving)
Select the files and folders to be moved, right-click the File, and drag the right-drag File (folder) to a new place in the trace Copy. Release the left button. in the displayed menu, select move files in Subversion to here.
11. Revert (restore)
Restore operation. If you have deleted the file, restore it back. Click delete and submit. The above prompt box is displayed. Click delete and then click Revert, that is, the delete operation has been canceled. If you click submit at this time, a prompt box will pop up: no files have been modified or added, and you cannot submit
12. Branch/Tag (Branch/Tag)
To create a Branch, click Branch/Tag. In the displayed dialog box, enter the Branch file name, log information, and click OK. The Branch is created successfully. Then, you can view the version and Branch status of the file.
13. Switch)
After creating a branch for a file, you can choose to work in the trunk or branch. In this case, you can Switch through Switch.
14. Merge (Merge)
Merge the versions of the trunk and branch, and click "OK" in the path and version number of each input file for the source and destination. The system merges the files. If there is a conflict, see conflict resolution.
15. Export (Export)
Copy the entire job and export it to the local directory. The exported file does not contain the svn file icon, and the file and folder do not have the green "& radic;" symbol.
16. Relocate)
When the file library directory on the server has changed, we can relocate the copy task and enter a new address in the To URL input box.
17. Add to Ignore List (Add to Ignore List)
Most projects have some files (clips) that do not require version control, such as *. obj, *. lst, and so on. Every time the file is sent, TortoiseSVN prompts that the files do not need to be controlled, which is annoying. In this case, you can add these files to the ignore list.
18. Other SVN-related functions
The client changes the user password:
Open your browser and enter http: // 172.18.49.180/cgi-bin/svnpass in the address bar. cgi: start the User password modification interface on the client, enter the correct user name, old password, and new password (note that the number of digits of the password should not be less than 6. Try to use a safe password ), click modify.
19. SVN Commit (version submission)
Submit the changes made in the copy of your work to the version library, so that you can see your changes when you get the latest version (Update.
20. Show log (Display log)
Displays the modification history of the current file (folder. SVN supports file and folder Independent version tracing.
21. Repo-Browser (view the current version Library)
View the current version Library. This is the portal for TortoiseSVN to view the version Library. With this menu item, we can go to the resource manager of the configuration library and then manage the folders of the configuration Library, this is equivalent to opening my computer for file management.
22. Revision Graph (version Graph)
View the revision history chart of the current project or file. If the project is relatively large, multiple branches will be created and multiple milestones (stable version release) will be created. Here, we can see the full picture of the project.
23. Resolved (conflict resolution)
If there is a conflict between the current working copy and the version library and it cannot be merged automatically, tortoisesvn will prompt you for a conflict when you submit the modification, in this case, you can use this menu item to resolve conflicts. There are two types of conflict resolution: one is to retain a copy, for example, overwrite the current work copy using the configuration library, or vice versa. Another method is to manually resolve conflicts. For text files, you can use the tool that comes with tortoiseSVN to list conflicts. Then you can discuss how to solve these conflicts with the submitter. At the same time, it also has good support for Word
24. Update to Revision (updated to version)
Obtain a previous version from the version Library. This function is mainly used to view historical versions, rather than roll back versions. Note: it is not recommended to perform any operations on this file after obtaining it. If you have modified the file, SVN will prompt you when you submit the file. The current version is invalid (not the latest version) and cannot be submitted. You need to update the file first. In this way, your modifications are in vain.
25. Revert (rollback)
If you have made some changes to the work copy, but you do not want it, you can use this option to cancel the modification.
26. Cleanup)
If there is any problem with the current work copy, you can use this option for correction. For example, some files are version controlled, but you can directly delete them without using tortoiseSVN, but tortoiseSVN retains the original information (each folder has. svn hidden folder stores the version information of all the folders in the current folder. Cleanup can be used to clean up.
27. GetLock/ReleaseLock (lock/unlock)
If you do not want others to modify a file, you can lock the file to ensure that only you have the permission to modify the file. No modification can be submitted to the configuration library unless you release the lock.
28. Branch/tag (Branch/tag)
Branch indicates a Branch. For example, when designing one thing, different people have different implementations, but they have not been tested by practice. No one wants to directly overwrite the design of others, therefore, different branches can be introduced. You can merge these branches if necessary in the future.
Tag indicates a tag. When a project is developed to a certain extent and can run stably, you can tag it as a stable version. You can easily find a specific version in the future (of course, we can also use the version number to search for it, but the number is inconvenient after all)
SVN uses hard links like Linux for branches and labels (the same file may exist in two places. Deleting one will not affect the other, and modifications will affect the other ), instead of simply copying a copy of a file, there is no waste of storage space.
29. Export (Export)
This function is convenient for deployment. When we need to release a stable version, we can use this function to export the entire project to a folder, and the new folder will not contain any version information.
30. Relocate (version Library transfer)
This function is required when the version Library is transferred. For example, my original version Library was built on a USB flash drive and is now transferred to the development server (copying the entire configuration Library folder) to use https instead of accessing the file system. Therefore, you need to relocate the Target version library of the original copy to the development server.
31. create patch)
Create a patch. If the administrator does not want anyone to submit any changes, but must review the changes, others can create patches to modify the information (patch files) send it to the Administrator. After the administrator approves the modification, he can use apply patch to submit the modification.
32. diff (comparison and modification)
If you have modified a file and are not sure about the changes, you can right-click the file and select diff to view the differences from the latest version on the server.
SvnHow do I clear the saved username and password?
1. Delete the following directories in Windows
C: \ Documents Ents and Settings \ administrator \ Application Data \ Subversion \ auth \ svn. simple
2. Delete the username and password of the last SVN logon in Linux
Rm ~ /. Subversion/auth/svn. simple /*
3. right-click the project, select TortoiseSVN --> settings, select the "Saved Data" option on the TortoiseSVN Settings page, and click the "Clear" button corresponding to "Authentication data, clear the previous authentication information.
TortoiseSVN client usage instructions