background
Two new programmers were added to support the development of a branch because of the project’s need, so you need to create a branch in the original SVN and assign users and permissions to the new commer.
0. Get ready
To use SVN on the Window system, we’d better install the 2 software of SVN separately:
ServerEnd: VisualSVN Manager
ClientEnd: TortoiseSVN
1. Create new users
Here, we operate on SVN’s server machine mountain with the tool Visual SVN Manager. The operation is very simple, as shown in the following figure:
After entering the basic information, the next step is completed.
2. Create groups
The goal of grouping is to unify developers, so that in the future when the “privileges” are set, only according to the grouping can be set. (of course, you can set up for every user).
Creating a group is also very simple. After a GUI operation, you can see the following results:
3. Import code base:
From here on, we operate on the Client machine of SVN using the tool: Tortoise SVN. First, import the code first.
According to the prompt, select the source folder, fill in the comments, you can see that the code has been managed by SVN:
4. Create Branch (Branch)
We’ve created code management under the SVN Trunk directory (main version), and since we’re now “customizing” a new project, we’re going to have a separate Branch for this project to manage.
First, select a location on the hard disk of the Client machine. CheckOut Code:
Upon completion, right click -> TortoiseSVN -> Branch/Tag on the code directory.
After selecting the path to generate Branch, click OK.
When we go back to VisualSVN Manager, we can see that the Branch has just been generated:
Finally, download the branch code on the SVN-Client machine:
5. Code access permission settings
Through SVN, we can also set permissions on its users. For example, set permissions for users in the “Dev” group just now so that they can’t access the specified directory in the Src directory:
Use Visual SVN Manager – & gt; select a folder in the Src Directory – & gt; all tasks – & gt; Manage Sercurity:
Add the “Dev” group and set it to “no access”:
OK, Permission settings complete!!
Thank you for watching, Have a nice weekend!!