In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "SVN usage tutorial". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Here I would like to share the SVN installation process and some information with you.
(1)First, the client installation.
1) Get the client installation package.
--The path to get the installation package:
TortoiseSVN official download address: tortoisesvn.net/downloads.zh.html
--Chinese language pack download path:
http://download.csdn.net/detail/fwzkj/9060519
2)Install the client. Step by step, there is nothing to say.
3)Use the client.
When the project manager operates for the first time, he/she needs to right-click on the local code folder and select "TortoiseSVN-> Import" to import the code of this project group to SVN, and SVN will manage the code. After that, other members of the project group can download and use the code of the project group. You need to log in to svn for the first time and get your username and password from the project manager. For code import, update and integration, please fill in the operation information according to "template" to facilitate follow-up problem tracking, code review and other operations. This is shown below.
For code import, update and integration, please fill in operation information according to "template" to facilitate follow-up problem tracking, code review and other operations. The specific steps are shown in the figure below.
Code checkout: Create a new folder (e.g. workspace), right-click and select SVN checkout. This is shown below.
Note:
Repository URL: Obtained from project manager.
Checkout to directory: the local path where a copy of svn code is stored.
Version: Use default, select latest version.
Code update:
After checking out the code from SVN, the local code is a copy of the code on SVN server, and will not change with the integration of other members of the code, so every time you operate on SVN, please update it first to obtain the latest file changed by other colleagues. (When the code is a lot, and you only change a small part of the content, you can only update the corresponding file, shorten the update event) Remember: before using the code, before incorporating SVN, you need to update the corresponding file. The detailed diagram is shown below.
Code modification:
In general, it is recommended to copy the updated code after SVN detection to another local path for coding and debugging. After verification, compare it with the code detected locally by SVN. This can avoid directly operating SVN to detect local code copy files, reducing the troubleshooting and positioning time caused by misoperation of source code. In the coding process, through the comparison tool, it is also very easy to compare two codes and check and recover the currently developed code.
Code Integration: Steps are as follows.
1) SVN update: Get the latest source code files;
2) Get lock: Get lock, file can only be operated by one person
3)[Compare files]: Compare modified files with svn updated files to determine updated content and avoid overwriting correct code that others have incorporated;
4)-- SVN Submit: Upload the modified content to the server, and the lock of the submitted file will be automatically released after submission;(in the Submit dialog box, please fill in the information according to the template)
5)--Release lock: release lock directly without modifying content.
When submitting the code, please fill in the incorporation information as per the template below. For example, change information, version, need to change people, time, etc.
(2)Then comes the server-side installation.
1) Get the installation package.
Path of installation package: www.visualsvn.com/files/VisualSVN-Server-1.6.2.msi
2) Documentation.
Download path. http://www.visualsvn.com/server/doc/VisualSVN-Server.pdf
3) The installation process has nothing to say. Mainly next and modify the installation path.
4) After installation, it starts to be used.
1> Run VisualSVN Server Manger, here is the startup interface:
Let me add a repository, as shown below.
Create a new code library as shown above, and enter the code library name in the text box shown below. This is shown below.
Note: If CheckBox in the above figure is selected, three subdirectories of trunk, branches and tags will be created under the code base StartKit; if not selected, only the empty code base StartKit will be created. Click the OK button and the code base is created successfully.
After creating the code base, nothing is in it. I'll explain how to migrate to source code in the second part of this tutorial. Below, we start security settings by right-clicking Users on the left:
Enter the information above, click OK, and we'll create a user. Following the above procedure, add users Developer1, tester1, manager1, respectively. Okay, let's start adding these users to the project we just created:
Click "Add..." in the image above. "button, select the user we just added in the figure below, click OK button. Note: You may have noticed the Groups in the figure below, yes, you can also create groups first, add users to each group, and then authorize the group, the operation is relatively simple, skip here.
Authorize user [or group] as shown in the figure below:
Clicking the OK button gives the user above different access rights to the StartKit code library.
Because user starter is a newcomer to the team and doesn't want him to commit new code to the codebase, he can only read code from the codebase, not commit code. Tester1 is a tester and is not responsible for writing code, so it is also read-only. Developer1 and manager1 are developers and project managers, and naturally have read and write permissions. In the actual project development process, Developer and tester are often impossible to have only one person. At this time, it is more convenient to use groups to authorize. This can be practiced by yourself.
"SVN use tutorial" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.