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