2022.04.14-SVN Quick Start Tutorial- Supplementary Explanation

2 install SVN

2.1 After the installation is complete, for example, I want to put the code in one of the places on my computer. For example: My project is in the directory of the F drive. I can right click and see the following:

It means that snv has been installed successfully!

2.2 Use checkout to download the project.

Let me talk about a few basic commands first:

Checkout : Download the code of the SVN warehouse to the local. For example, if you are participating in a team project, the project may have been running or the technical director has already built the code warehouse before you participate. You can command the project code through checkout to get the corresponding The code of the item.

Update : In the process of writing code, the project referees have probably submitted the code to the SVN server, and your local project is written by yourself, and there must be no new code submitted by other participants. You can get the latest SVN through update SVN code.

Commit : When you complete part of the development and there are no other errors in the program, you can submit the code to the SVN server through commit, and the server will generate a new version, so that other participants can obtain the code you submitted accordingly. Important note: Every time you must first update and then Commit.

Checkout command diagram

Create a new or enter the directory (for example, my F drive: CBDATA), right click --> Svn Checkout -->

 Step 1: Enter {project address} in URL of repository

 Step 2 If prompted to enter the account, enter the account password to download the project code to the local.

The above is the downloaded code.

Precautions:

   Open the downloaded directory . The hidden directory of svn records two key information: the base version of the working file and the timestamp of the last update of a local copy. Do not manually modify or delete this hidden directory of .svn and the files inside!!, Otherwise, your local working copy (static view) will be destroyed and you will no longer be able to operate it. Or if you don't want to do version control anymore, or want to start version control again, you can delete it directly.

TortoiseSVN icon introduction

1. Newly added files are not included in version management

2. Newly added files have been added to version management 

3. Those that have been added to version management and have been submitted to the server 

4. The modified file is not submitted to the server 

5. Conflicting files, multiple people have modified the file at the same time 

A. Add command diagram

The following is the newly added file, which has no icon. This file has already been created, but it is not included in the SVN code management

Right-click the file and the following menu appears, add the file to the SVN code management 

 The following is the added icon. Obviously, there is an icon + sign on the file. So far, the file has only been added to SVN, but it has not been submitted to the SVN server.

Also right-click the file, the function menu is different from the last menu, because the file has been added to the SVN code management

B. Commit command diagram

When we have finished writing the code, submit the code to the server and submit the code through Commit. Note that you must update it before submitting it.

 

The picture below is the file icon after submission

 If you have modified a code file, the status has changed to Modified and the icon overlay has changed to a red exclamation point, you can easily see which files have been modified since your last update of your working copy and need to be committed

Copyright statement: This article is an original blogger article, following the CC 4.0 BY-SA copyright agreement, please attach the original source link and this statement for reprinting.
Link to this article: https://blog.csdn.net/p445726392/article/details/96840259
——————————————————
Copyright statement: This article is CSDN blogger "eat code when you go online" The original article follows the CC 4.0 BY-SA copyright agreement. For reprinting, please attach the original source link and this statement.
Original link: https://blog.csdn.net/p445726392/article/details/96840259

I have collected some articles that I think some bloggers speak very well, and each article is written with time and effort, but when I open it again, some bloggers delete these articles, I think it is very It's a pity, so the content of the article is reproduced according to the original text.

Guess you like

Origin blog.csdn.net/m0_46551050/article/details/124168642