Configure svn for mac
After XCode is installed, the Mac OS X system has built-in svn support, so all you need to do is configure. 1. Create a directory to save the software repository. Sudo su (then enter the password) mkdir/optmkdir/opt/svnmkdir/opt/svn/repos creates the directory/opt/svn/repos/2. create a version repository svnadmin create/opt/svn/repos3. modify the authorization configuration to go to the repository configuration directory cd/opt/svn/repos/conf (1) and edit the configuration file vi svnserve. conf uncomment anon-access = readauth-access = writepassword-db = passwd (password configuration SAVING file) auth-db = authz (authentication configuration SAVING file) (2) edit the password configuration file vi passwd in the format of "user name = password" (3) edit the authentication file vi authz in the format of [groups] user group name = user group member [directory to be authorized] @ group name = permission user name = permission example: [gro Ups] g_developers = jcccn, jesse, billg_tester = jerry, wang [/] @ g_developer = export CCCN = rw * = [/jcccn] @ g_tester = rwjcccn = rw * = r (4) configure ignore file vi ~ /. Subversion/config if the ". subversion" directory does not exist, run the "svn status" command. Although this command will fail, it will create the required file for you. Find the global-ignores line, remove the comment, and edit it to: global-ignores = build *~. Nib *. so *. pbxuser *. mode *. perspective * Find enable-auto-props = yes and remove the annotation. declare the following text file in [auto-props] Section :*. mode * = svn: mime-type = text/X-xcode *. pbxuser = svn: mime-type = text/X-xcode *. perspective * = svn: mime-type = text/X-xcode *. pbxproj = svn: mime-type = text/X-xcode4. run the command svnserve: svnserve-d-r/opt/svn/repos to end the service. You can use killall-9 svnserve. Note: permission issues may occur. You can use the sudo command, if the svn db file is ROOT, change it to user permission: sudo chown-R UserName /Opt/svn/repossudo chmod-R 755/opt/svn/repos. If SVN files are copied from other locations to Mac hard disks, you will see a prompt "Operation not permitted" (you're okay, sorry, you can't move your brother's file. Why? Please use sudo chflags-R nouchg/opt/svn/repos. In short, if the SVN directory encounters a strange permission drop problem, you can do it in three steps: sudo chflags-R nouchg/opt/svn/repossudo chown-R UserName/opt/svn/repossudo chmod-R 755/opt/svn/repos, don't forget to "Clean up "~ SVN clients on Mac OS, svnX, scplugin