How to use SVN on Mac, a few simple lines of command to get it done

Source: Internet
Author: User
Tags svn

If you're going to use SVN to manage your code, if it's not a necessity, look at git, but SVN has to know how to use it, and the principle is similar.

First, something to prepare: Svnx software Https://pan.baidu.com/s/1mhEay3A

1. Open the installation, and then open the terminal to start the command line operation, if you want to switch directories, you can use the "CD" command

Ls

View all files for the current path

mkdir Svnfolder

2. Create a folder named "SVN", if the file is in the root directory, execute the following command, followed by the path of the folder you just created

Svnadmin Create/users/username/svnfolder

If there is no error, then you can see some newly created files in the Svnfolder folder.

3. In a folder named conf, locate a file named Svnserve.conf, open with text editing and find the following

#anon-access = Read  

and remove the # from the front of the four lines, save it, and turn off the file.

5. Go back to the terminal and then you can start the SVN service.

Svnserve-d-r/user/username/svnfolder

If you don't get an error, you can start your SVN journey.

6. If you already have an SVN project stored on the server, you can clone it using the following command

SVN checkout svn://.../--USERNAME=MJ--password=123/users/username/desktop/svnproject

7. If you want to upload your own project

SVN import/users/username/desktop/svnproject svn://localhost/weibo--username=xxx--password=xxx-m "Add a new project."

Client interface is very simple, enter the necessary information double-click, specific use please look forward to post-blog updates.

How to use SVN on Mac, a few simple lines of command to get it done

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.