Mac already has SVN installed by default, we just need to configure and turn it on.
First we can verify if SVN is installed, open terminal, enter command
Svnserve--version
Here you can see the current SVN version number, which shows that SVN has been installed
The following formally begins to configure SVN
1. Create a code base
Let's create a code base for saving code
In the terminal input command
sudo mkdir-p/users/apple (modified according to your user name)/svn/mycode//Create a folder, this folder path can be set at your own discretion
sudo svnadmin create/users/apple (modified according to your username)/svn/mycode//Set the previously created folder to the SVN code base
We open the above path in the Finder, we can open it to generate some files, we need to configure the file under the Conf folder
2. Configure SVN user Rights
1) Configure the svnserve.conf file
To open a file with an editor
Modify the above location, where anon-access = Read for anonymous access is read-only, if you change to anon-access = None means anonymous access is forbidden, the account password is required to access
2) Configure the passwd file
Add the above content in the file, you need to add the content under [users], the above content marked the creation of two users, the user AAA password is 111, the user BBB password is 222
3) Configure the Authz file
Add Uesrs = AAA,BBB in [groups] to create a user group that contains AAA and BBB two users
[/]
@users = rw These two sentences indicate the corresponding permissions to the users user group
[/] Indicates the directory path of the authorization, here is the root directory, if there is a directory under the root directory called Test, then if we want to edit the permissions of this directory will be written as [test:/]
@uesr Express authorization to the user group, if you want to grant a user authorization, do not write the previous @
R is readable, W means writable
3. Start the SVN server
In the terminal input
Svnserve-d-R/USERS/APPLE/SVN
Be careful not to enter svnserve-d-r/users/apple/svn/mycode
No error returning means the SVN server is open successfully.
We can also check in the Activity Monitor.
Below to configure Cornerstone
To a download link Http://down.xiazai2.net/?/121625/cr173/SVN%B9%DC%C0%ED%B9%A4%BE%DF.exe
SVN management tool (Cornerstone Mac Version) V2.7.10 cracked version has cracked dmg file no password, do not need to use the registration machine directly
Open Cornerstone
Click + Add code Library
Select SVN server and fill in the contents of the red box
Server: If the server writes localhost locally on the other computer on the LAN, write his IP address
Repository path: The address here is using the code base path when the SVN is configured above, if the path above is different from mine, change it myself.
The bottom two is the user name and password, the last save is good, if the connection is successful will show success
At this point, configure the local SVN server with Mac and connect the SVN server with cornerstone.
Reference: http://blog.sqstudio.com/otherskill/1048.html
http://m.blog.csdn.net/blog/kekey1210/16463289
Mac builds a local SVN server and connects to the server using Cornerstone