TortoiseSVN tutorial
TortoiseSVN is a free and open-source client for the Subversion version control system that can manage files and directories beyond time.
TortoiseSVN installation
Download address:https://tortoisesvn.net/downloads.htmlThe page has a download link for the language pack patch.
The latest version is currently 1.11.0. Download address: https://osdn.net/projects/tortoisesvn/storage/1.11.0/

In the language patch package we can find the Chinese patch and download it:

Run the downloaded TortoiseSVN installer

Run the downloaded TortoiseSVN Chinese language pack

After correct installation, you should restart the computer once to ensure TortoiseSVN works correctly.
Change the TortoiseSVN default language
After TortoiseSVN is installed, the default interface is in English. We can change it to the installed language through settings.

Using TortoiseSVN
Create a runoob01 working directory
The so-called runoob01 directory is actually the place where you normally store your working files. Usually we wait until our work reaches a certain stage before backing it up. So we normally work under the runoob01 directory and commit to the repository at the appropriate time. For example, we want to create a directory named runoob01 under drive D. First, create this directory.

Enter the created directory and right-click in a blank area (you can right-click on the icon of the MyWork directory, or enter the MyWork directory and right-click in a blank area), then select SVN checkout.

Then you will see the following screen:

First we need to fill in the location of the repository. For SVN, the location of the repository is a URL. In the Repository URL field, fill in our test repository address. svn://10.0.4.17/runoob01.
Next, take a look at Checkout directory. This field should point to your runoob01 directory.

After confirming, press the OK button, and you should see the following information window.

This indicates that the action is complete. After pressing the OK button, go to the directory you just created. You will see an additional directory named .svn under the MyWork directory (this directory is hidden; if your file manager is not set to show hidden directories, you will not be able to see it).

If you want to check out the above files on an existing SVN Server, you only need to provide the correct SVN URL and the name of the directory to check out. Then you can obtain the specified files and directories.
Add files and directories to the Repository with add commit
Create the directory dir01 and add a file in the directory

Add the new files to SVN version control. TortoiseSVN will check the files and directories to be added, and you check the files that need to be added.

After pressing OK, you will see the following message window:

This Add action does not actually place the files into the Repository. It only informs SVN that it is ready to put these files into the Repository. The file status at this time is:

These files are actually put into the Repository by right-clicking in a blank area and selecting SVN commit. Then you will see the following window appear:

Here you can clearly see which files will be committed to the repository. Likewise, if you have files you do not want to commit to the Repository at this time, you can uncheck them, so they will not be committed to the Repository. In the "Message" text box you can write a description of this commit.
After clicking "Confirm", the commit action is completed. Then you can go to the runoob directory to confirm whether all file icons have the following green checkmark on them, which means your files have been correctly placed into the repository.

Update files and directories update
Since version control systems are mostly used by many people together, the same file may be edited by others. To ensure that the files in your working directory are synchronized with those in the Repository, it is recommended that you update before editing.
Right-click on the icon of the file or directory you want to update, and select SVN Update.

Sometimes we need to go back to a specific date or version. At this point we can use SVN's Update to revision feature. Right-click on the icon of the file or directory you want to update, and select TortoiseSVN -> Update to revision.

Copy files and directories branch
Many times you will want to have another copied directory for new editing. After confirming that the modifications on this branch are complete, merge it back to the original main development version. For example, we currently have the following directories and files under runoob01/trunk:

Now we want to create a branch for the trunk directory. Suppose we want this directory to be at D:\runoob01\branch. First, we can right-click in a blank area under the trunk directory, or directly right-click under the trunk icon, and select the Branch/Tag... option. You will see the following dialog box appear.


First confirm that the directory in From WC at URL is the source directory you want to copy. Then, enter the path you want to copy to in To URL. Usually we put all branches under one directory. In the above example, branch files will be concentrated under the branch subdirectory. In To URL you only need to enter the directory you want. When the directory does not exist, SVN will create it for you. It is especially important to note that SVN uses a slash as the directory separator character, not a backslash. Then enter the purpose of this branch in Log message. Press OK and you are done.
If successful, you will see the following screen:

Press OK to close this window. If you immediately go to the branch subdirectory of the runoob01 directory at this time, you will be disappointed to find that the directory you just specified does not exist under it. This is because the part of your runoob01 directory is still old; you only need to perform an SVN update under the branch subdirectory to see this newly added directory. The newly added directory is unrelated to the original directory. You can edit it arbitrarily until you confirm that all the work under branch is completed, then you can choose to merge this branch back to the original trunk directory, or keep it in the branch.
Merge action
If we modified files or added files in the branch, and want to merge them back into the trunk directory, the method is simple. In the above example, in a blank area of the D:\runoob01\trunk directory, right-click and select Merge:

This screen is mainly divided into three parts. The From: and To: at the front ask from which version to which version in the Branch you intend to merge back into the original trunk directory. Therefore, the URL fields of From and To should both point to the original branch directory. The rest is to specify the revision range to merge. In the above example, we start merging from Revision 7 of the Branch to the latest version under the Branch. You can use the Try run button to try a Merge once. This merge will only display some messages and will not actually update the trunk directory. Only after pressing the Merge button will the branch files and trunk files actually be merged.

If you confirm that this merge has no problems, you can directly use commit to commit these two modified files back to the SVN repository. If there is a problem, you can directly modify these two files until you confirm it is ok, then commit.
Create a Tag or Release
The so-called Tag or Release is a special version, because this version may have special meaning. For example, this version is a special Milestone or a version released to customers. In fact, the methods of Tag and Release are exactly the same as Branch. It is just that Branch may need to be merged back to the original trunk, while tags and releases mostly do not need to be merged back to trunk.
For example, today our trunk produced a version that is recognized as the software version 1.0. Version 1.0 is a very important milestone for development. So we want to make a special mark for it, that is, a Tag. Suppose this 1.0 version is to be officially released to customers or related vendors; we can make a Release mark for it. Basically, SVN only has the concept of directories and does not have any special Tag usage. So you will see that on the SVN menu, Branch and Tag are the same item. In this 1.0 example, we create a tags directory under the runoob01 directory to store the tagged versions, and commit it to the repository, then on the Trunk, right-click and select the Branch/Tag item:


If successful, you have created a v1.0 directory under the corresponding Tag directory. Of course, if you go to the Tag directory at this time, you will not see this directory; you need to update under the Tag directory to see it.
