How to setup SVN Server, English version
I found that there are so many people who search the keyword, "svn server", and then come here, so I think that maybe I should write an English tutorial for helping people who do not know Chinese.
- First, go to Subversion to download the SVN Server
- Add the installed path to the environment variables. For example, in windows system, it may be "C:\Program Files\Subversion\bin\".
- Create a directory for storing the projects. In this tutorial, we assume the directory is in "D:\projects"
- Create a directory for each case, called "repository". Follow the previous assumption, if we are going to create a project called "PostEX", you need to key in the following command
- svnadmin create d:\projects\PostEX
- Edit the permission file
- In "d:\projects\PostEX\conf",edit the file "password"
- find the tag of "[users]", and add the user and password to it
- For example: padsmember = padspassword
- find the tag of "[users]", and add the user and password to it
- Edit the file of "svnserve.conf". If you want to close the function of anonymous access, you need to find the tag of "[General]", and edit the anon-access property to none, as follows:
- anon-access = none
- Find a line like this "# password-db = passwd", and delete the "#" symbol to enable the changes before
- In "d:\projects\PostEX\conf",edit the file "password"
- Start SVN Server
- D:\>svnserve -d -r d:\Projects --listen-port 9000
- D:\>svnserve -d -r d:\Projects --listen-port 9000
- All the members in this project need to install a SVN client, such as TortoiseSVN
- Create a directory for checkout the files of the projects from SVN Server
- Use TortoiseSVN to do "checkout". Note that replace the protocol of the URL of the repository to "svn"
- For example: svn://pads15.cs.nthu.edu.tw:9000/PostEX
- Some main functionalities:
- checkout: people who just join the project, and need to download the newest files.
- update: you have checked-out before, and need to update the source code later (download the new version of source codes), you need to use this option.
- commit: once you have changed the codes, and you want to commit the changes to let other people to download the new one, you need to commit it to the SVN server.
留言