Mac has svn installed by default, we just need to configure it and turn it on.
First we can verify whether svn is installed, open the terminal and enter the command
svnserve --version
Here you can see the current version number of svn, indicating that svn has been installed.
Let’s officially start configuring svn
1. Create a code base
Let's create a code library to save the code
Enter the command in the terminal
sudo mkdir -p /Users/apple (modify according to your own user name)/svn/mycode //Created a folder, the path of this folder can be set at will
sudo svnadmin create /Users/apple (modify according to your user name)/svn/mycode //Set the previously created folder as the svn code library
We open the above path in Finder. We can open it and generate some files. We need to configure the files in the conf folder.
2. Configure svn user permissions
1) Configure the svnserve.conf file
Open file with editor
Modify the above position, where anon-access = read means that anonymous access is read-only. If changed to anon-access = none, it means anonymous access is prohibited and an account and password are required to access.
2) Configure passwd file
To add the above content to the file, you need to add the content under [users]. The above content indicates that two users have been created. The password of user aaa is 111 and the password of user bbb is 222.
3) Configure authz file
Add uesrs = aaa, bbb under [groups] to create a user group. This user group contains two users, aaa and bbb.
[/]
@users = rw These two sentences indicate that the users group has corresponding permissions.
[/] represents the authorized directory path, here is the root directory. If there is a directory called test under the root directory, then if we want to edit the permissions of this directory, we must write [test:/]
@uesr means authorizing the user group. If you want to authorize a certain user, you don’t need to write the previous @.
r means readable, w means writable
3. Start the svn server
Enter in the terminal
svnserve -d -r /Users/apple/svn
Be careful not to enter svnserve -d -r /Users/apple/svn/mycode
If no error is returned, it means that the svn server has been started successfully.
We can also check it in Activity Monitor
Next, configure Cornerstone
Give me 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 been cracked. The dmg file has no password and does not require a registration machine to be used directly.
Open Cornerstone
Click +Add repository
Select svn server and fill in the contents in the red box
server: If the server is local, write localhost. On other computers in the LAN, write its IP address.
repository path: The address here uses the code library path when configuring svn above. If the above path is different from mine, change it yourself.
The bottom two are username and password. Finally, just save. If the connection is successful, success will be displayed.
At this point, you are done configuring the local svn server with mac and connecting to the svn server with Cornerstone.
If an error occurs when uploading "
Error: svn: Can't create directory .svn': Permission denied
"It is because the file does not have permission to open, enter in the terminal
$ sudo chown -R www-data:subversion (file path)
$ sudo chmod -R g+rws (file path)
That's it
Reference: http://blog.sqstudio.com/otherskill/1048.html
http://m.blog.csdn.Net/blog/kekey1210/16463289