Eighth, SVN is used on Mac

Source: Internet
Author: User
Tags svn

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.