Welcome: Hunan Intelligent Applications Tecgnology CO.,ltd.-HNIAT.com
Language: Chinese ∷  English

Basic knowledge

SVN Detailed Usage Tutorial

1、 Working principle of SVN
2、 The main operations of SVN
SVN Checkout
SVN commit (upload SVN commit)
SVN Update (Download SVN Update)
Relocation: When the SVN address changes, it needs to be relocated
Display Log: View History
1. SVN Checkout:
SVN detection is used when establishing a connection with the SVN server for the first time
When detecting, it is necessary to provide:
Address of SVN
User name and password
Note: Before checking out, create a new folder because many files and folders will be checked out during checkout. Creating a new folder is to put all the checked out files and folders together.
The detection steps are as follows:
1) Create an empty folder (project name), such as D:  huileketang
2) Enter the newly created folder
3) Right click and select 'SVN detection...'
4) In the small window that opens,
a) Version library URL: Enter the SVN URL address of the project,
b) Check out to directory: Enter the folder directory created in step 1 (D:  huileketang)
5) Click 'OK' to check out.
Note: If it is the first time to check out, the following two images will pop up, where you can enter your username and password, as shown in the following figure:
After entering the username and password in the above figure, click the "OK" button to start downloading data from the SVN server to the local machine,
As shown in the following figure:
Then click on the "OK" button in the figure above. At this point, the first download of files from the SVN server has been completed.
6) View the results of the local file, as shown in the following figure:
2. SVN commit (upload SVN commit):
SVN submission refers to the modification, addition, deletion, submission, or uploading of files or folders on the computer to the SVN server
Whenever a local file is modified or deleted, that is, whenever there is a discrepancy between the local file and the server file, the "submit" function can be used to upload the local file to the server, so that others can update (download or synchronize) the file you submitted.
As shown in the red section of the following figure, the file with "modified status"
If you want to submit all modified files or folders in the current folder, you need to right-click in the blank space of the folder and select 'SVN Submit...'
If you only want to submit the latest content of a certain file or folder, then you just need to right-click on that file or folder and select 'SVN Submit...'
3. SVN Update (Download SVN Update):
Update/download the modified content from the SVN server to a personal computer, consistent with the SVN server
Whenever you want to view the latest content of a certain file or files, you need to first download the latest content of the file from SVN, and then you need to use the "SVN Update (U)..." function.
If you want to download the latest content of the entire folder, you need to right-click in the blank space of the folder and select 'SVN Update...'
If you only want to download the latest content of a certain file or folder, you just need to right-click on that file or folder and select 'SVN Update...'
The specific steps for updating SVN are as follows:
1) Go to the folder where you want to download updates (mine is D:  huileketang)
2) Right click in the blank space of the folder "D:  huileketang", as shown in the following figure, and click "SVN Update..."
3) Click on "SVN Update..." and the following page will pop up:
4. Repositioning:
When the SVN address changes, it needs to be relocated.
Method: Right click in the blank space of the folder corresponding to SVN and select "TortoiseSVN" ->"Relocate
5. Display logs:
Viewing historical records mainly involves viewing the submission history of files or folders, such as who, when, and which files or folders were submitted.
Method: Right click in the blank space of the folder corresponding to SVN and select "TortoiseSVN" ->"Show Logs"
3、 Meaning of SVN's status icon
There are several common SVN icons, as shown in the following figure:
1. General ": The green circle with a white check mark mainly indicates that the files or folders on one's own computer are consistent with the corresponding files on the SVN server and have not been modified on one's own computer.
2. "Modify": The red circle is marked with a white exclamation mark. When you start editing a file, the status of the file will become modified, and the icon will also turn into a red circle with a white exclamation mark. By changing this state, you can know which files you have modified and which files need to be submitted.
3. 'Conflict': A yellow triangle with a black exclamation mark indicates a conflict that can easily occur when editing a file simultaneously.
4. Read Only ": The gray circle with a white check mark appears only after setting the read-only attribute, and it cannot be cancelled until you obtain a file lock. The read-only file uses this overloaded icon to indicate that you must obtain a lock before editing.
5. 'Deleted': A red cross indicates that the corresponding file or folder has been scheduled for deletion, or that the file is missing.
6. Add: The blue plus sign indicates that the file or folder has been planned to be added to version control. Usually, newly created files or folders will have this identifier.
7. Ignore: The gray circle with a white horizontal line indicates that it is no longer under version control.
8. No version control ": The blue circle with a white question mark indicates that there is currently no version control, but it has not been ignored.
9. Lock ": A yellow lock indicating that the file is locked and must be released before others can submit modifications.

CONTACT US

Contact: Manager Xu

Phone: 13907330718

Tel: 0731-22222718

Email: hniatcom@163.com

Add: Room 603, 6th Floor, Shifting Room, No. 2, Orbit Zhigu, No. 79 Liancheng Road, Shifeng District, Zhuzhou City, Hunan Province

Scan the qr codeClose
the qr code