SVN client installation and common operations (super detailed)

SVN client installation (super detailed)

1. SVN client installation
1. Download the installation package address: https://tortoisesvn.net/downloads.html
This installation package is in English, and you can also download a language package,
insert image description here
click the language installation package at the bottom of the same interface It can be downloaded
insert image description here
2. Install SVN first, and then install the language pack, otherwise an error will be reported.
insert image description here
insert image description here
Keep clicking Next until
the red box pops up,
insert image description here
then "Next", and finally complete.

3. Install the language pack, just double-click it, and then go to the next step to complete.
insert image description here
4. The SVN client does not refer to a desktop application, but a plug-in integrated into the right-click menu of the system. Therefore, using the client to download project resources to the resource library, submit project resources, etc. are all done through the right-click menu.
Right-click on the blank space on the desktop:
insert image description here
select Settings, open the setting panel, and you can set the language: select Chinese
insert image description here
6. Download the project from the SVN server
In your local project folder or any place, right-click on the blank space to pop up a menu, and
select SVN checkout:
insert image description here
7 , Then, download the corresponding project through the resource library URL obtained from the SVN server + the specific project folder name, and you can know the save location of the downloaded project. I can obtain the URL
insert image description here
from the SVN server, and right-click on the SVN server fuxi to create a new file
insert image description here
fuxi_SVN The folder is created, and then, for example, right click --> copy to
insert image description here
open SVN (check out) on the client side, paste the copied version library URL, click OK to pop up the
insert image description here
authentication, enter the newly created user of the SVN server,
insert image description here
and the following figure is displayed. Successfully
insert image description here
view the client file display as shown
in the figure below:
insert image description here
Note:
The .svn hidden directory records two key information: the baseline version of the working file and the last updated timestamp of a local copy. Do not manually modify or delete this .svn hidden The directory and the files inside!!, otherwise your local working copy (static view) will be destroyed and you will no longer be able to operate it.


Introducing the TortoiseSVN Icon
insert image description here
A newly checked out working copy is reloaded with a green checkmark, indicating that the Subversion status is OK.
insert image description here
After you start editing a file, the status changes to Modified and the icon reloads to a red exclamation mark. This way, you can easily see which files have been modified since your last update of the working copy and need to be
insert image description here
committed
insert image description here
You have a file or directory that has been scheduled for version control


2. Some operations of the SVN client

Add (Add)
     under the fuxi_SVN (KHD) project file, create a new c.txt file, and submit it to the version library in the following two ways:
1. First mention it in the change list, and then SVN commit (commit) to the configuration library.
Select the new file, right-click—>TortoiseSVN—>add "Operation Submit to" Change List", then right-click and execute "SVN Submit" to submit to the repository
insert image description here
insert image description here
insert image description here
insert image description here
2. Do not submit to the change list, but directly submit (commit) In the configuration library,
select the file, right-click the svn menu to execute the "SVN Commit (Commit)" operation
insert image description here

Delete (Delete)
    If the deleted file has not been entered into the repository, you can directly use the delete operation of the operating system to delete the file.

If the deleted file has been entered into the repository, the deletion method is as follows:
1. Select the deleted file, right-click TortoiseSVN to execute the "Delete" operation, then select the parent directory of the deleted file, right-click to execute SVN update first, and then execute "SVN Commit".

Use the delete operation of the operating system to delete the file, then select the parent directory of the deleted file, right-click to execute SVN update, and then execute "SVN Commit (Commit)", select the deleted file in the change list. As shown in the figure below:
insert image description here
Rename (Rename)
    to modify the file name, select the file or folder to be renamed, then right-click TortoiseSVN—>Rename, enter the new name in the pop-up dialog box, click the "ok" button, and modify the file name The files or folders are submitted to the SVN server through "SVN Commit (Commit)"

SVN Revert (SVN Revert)
    Right-click the file or folder you want to roll back, select "Update to Version" in the TortoiseSVN pop-up menu, and a window will pop up, as follows: For example, if we want to
insert image description here
roll back to the 10th version, we only need Fill in the corresponding version number in the version, and then click OK

Check for updates (Check for modifications)
    TortoiseSVN----->Check for modifications
    This function can display the modifications you have made that have not been submitted. This function can not only see the changes to the file, but also all the changes To, including adding files or directories, deleting files or directories, moving files or directories, etc. If you click Check Repository, you can also see the changes in the repository, that is, which files have been submitted by others. Not updated locally, as follows:
insert image description here
SVN Update (SVN Update)
    to update the local code to be consistent with the latest version on the SVN server, just right-click on the folder to be updated or right-click on the blank space under the file, and select "SVN Update (Update )" (get the content in the specified version, right-click to execute "Update to Version" in the SVN menu), and then
insert image description here
SVN commit (SVN Commit) SVN
    commit is to submit the changes made in the workspace, including the file content modification, adding, deleting, naming, moving and other operations of files or directories

Show log (Show log)
    TortoiseSVN----->Show log
    Through this function, you can find out who, when, and what operations were performed on those files in that directory, as shown in the figure below:
insert image description here
Repo-browser
    TortoiseSVN ---->Browse version library
    This function is used to browse the database that needs to be viewed. Right-click under the local folder, select TortoiseSVN---->Browse version library, and enter the address of the database in the pop-up dialog box. Then enter the user name and password to view the content of the version library you need to view. Here you can also see who locked those files, as shown in the figure below:
insert image description here


Guess you like

Origin blog.csdn.net/shuang_waiwai/article/details/121069404