1. Install SVN
A, Sudo-Apt-Get install subversion-Tools
B, mkdir/home/SVN
C, CD/home/SVN
D, svnadmin create Repository
2. Import the project
A, mkdir proj
B, mkdir proj/trunk
C, mkdir proj/branches
D, mkdir proj/tags
E, SVN import proj file: // home/SVN/repository-m'init'
F, SVN list file: // home/SVN/Repository/proj
G, create Branch
SVN copy file: // home/SVN/Repository/proj/trunk/file: // home/SVN/Repository/proj/branches/PROJ-201108-m'create A branc'
3. Configure SVN
A, VI svnserve. conf
Remove the comments before the following statement
Anon-access = read
Auth-access = write
Password-DB = passwd
Authz-DB = authz
B, VI passwd
Add a new user
Leon = xxxx
C, VI authz
Add a new group
[Groups]
Admin = Leon
[/]
@ Admin = RW
* = R
D. Pay attention to the following for the authz. conf configuration file:
1) if we start it in svnserve-d-r/home/SVN/Repository mode, there will be no configuration like [proj :/].
2) if we start it in svnserve-D mode, we can configure it in [proj :/].
4. Start the svn service.
A, svnserve-d-r/home/SVN/Repository
5. Configure xcode
1. Select SCM> Configure repositories from the xode menu and enter the svn server information.
2. Select SCM-> repositories and you can import and check out the content you want. You can also perform routine SVN management here.
3. After the checkout project is completed, set the project SCM in the properties of your project.
4. after setting, you can see a new column in your project view. M indicates that the file has been modified, and then you can use the SCM menu, you can also right-click the menu to directly perform SVN operations, such as commit, update, revert, diff, and log.
SCM-> Get SCM info to view the version information of any file