First set up an SVN directory, the location can be arbitrary, with the desktop as an example
mkdir ~/DESKTOP/SVN
Create a new directory named Proj as a repository
$ cd ~/desktop/mkdir proj
Create the Repository
$ svnadmin Create ~/desktop/svn/proj
You can see the passwd, svnserve.conf, and Authz three files in the ~/desktop/svn/proj/conf directory, which is the file we need to configure
Edit svnserve.conf File
You can see that all the statements are in the comment State, modify some statements (remove the comment, modify the configuration after the equals sign, and so on). The specific meaning can be referred to the text described in the document.
anon-access = Noneauthwritepasswordpasswdauthz-db = Authz
Edit passwd File
Add the account number and password you want under [users]
Robin = MyPwd
This adds a username named Robin with a password of mypwd.
Edit Authz File
Configure a user group under [groups]
admin = Robin
Indicates that the Admin user group contains a Robin user, separated by commas if additional users need to be added
Modify the [Foo/bar] below to the [/] root directory and configure the permissions information
@admin = RW
Need to add the @ symbol before the user group
-----------------------------------------------------------------------------------------
At this point, the configuration section is basically complete
Next, you can start the SVN service
$ svnserve-d-R ~/DESKTOP/SVN
If you need to stop the service command for
sudo killall -9 Svnserve
Mac self-built SVN server