Mac comes with SVN software
1. Create a directory Svn-repository/source-code
2.svnadmin Create/users/liaokailin/svn-repository/source-code
3. Modify the Svnserve.conf file
Anon-access = Read
auth-access = Write
Password-db = passwd
Authz-db = Authz
Configuring the user name and password in passwd
Configuring Permissions in Authz
4. Start SVN
Svnserve-d-r/users/liaokailin/svn-repository
5. Import the code into the trunk
SVN import/users/liaokailin/code/workspace-test/spring Svn://localhost/svn-repository/source-code/trunk-- Username=liaokailin--password=1-m "Import code into Trunk"
6. Create branches via trunk
Add the SVN repository in Eclipse Svn://localhost/svn-repository/source-code then you can see the trunk code, then select the Warehouse, create a new folder named branches ( At the same time the tags file created good)
The following command is then executed at the terminal
SVN cp svn://localhost/svn-repository/source-code/trunk SVN://LOCALHOST/SVN-REPOSITORY/SOURCE-CODE/BRANCHES/DEV_ Lkl_20150530-m "Create Branch"
Branch created successfully!
Pull code on the branch to develop
7. The SVN address of the switch code
Select Team->switch in Eclipse and select the SVN address to toggle in the URL bar
8. Merge branches onto the trunk (branches that have been merged into the trunk, no further operations)
In Eclipse, the project switches to the trunk trunk, select Team->merge-> to see the code on the branch, then right-click on the Accept, then the code on the branch will pull to the local project, but has not been submitted to the trunk, synchronized code, Then submit the local code to the trunk
Note: When the branch is merged into the trunk, the branch should be deleted because the branch cannot be refreshed or merged into the trunk in SVN
9. Merging the trunk onto the branch is similar to the above operation
10. Branch development stable after a tag, and then based on the tag to publish the application
SVN copy svn://localhost/svn-repository/source-code/trunk svn://localhost/svn-repository/source-code/tags/ Release-1.0-m "1.0 released"
Easier to operate on eclipse
Eighth, SVN is used on Mac