Two ways to install svn on mac (use brew to install svn and the visual tool SnailsvnLite)
1. Use homebrew to install svn
1.1 Install homebrew
- If you don’t know how to install homebrew, you can read the following article: The
detailed introduction of installing Homebrew on mac includes solving various problems and using Homebrew to install git. The records of all the processes must be available .
1.2 Install and use svn
1.2.1 Install svn
-
Installation
subversion
command is as followsbrew install subversion
Okay, now the installation is successful, you can use it next
1.2.2 Using svn
- The following is a simple demonstration of the usage level. For more information, please see the official website:
https://subversion.apache.org/quick-start .
1.2.2.1 Simple basic operations
- destination checkoutTry this:
- Let’s take a look at the example from the official website first:
- Check out your own, as follows:
svn checkout svn://ip/XXX/docs mytest
- The files after checking out are under your own username file, as follows:
- Let’s take a look at the example from the official website first:
- update svn:
语法:svn update [PATH...]
svn update mytest
- Add new file, submit
- For newly added folders or files locally, please
add
review them before submitting:svn add mytest/hi
- Then submit (
-m "hi"
, submit remarks):
Syntax:svn commit [PATH...]
Or submit in this directory:svn commit
svn commit mytest/ -m "hi"
- For newly added folders or files locally, please
- Delete Files
When deleting, be careful not to delete the local one first, directly order the deletion, and then handle the local one yourself.
1.2.2.2 Update svn account information
- First focus on searching "keychain access”
- Then click in to configure, as follows:
2. Install svn (visualization) in app sore
- If you want to use a visual one like the one on win, then just
tortoiseSvn
install it. Just find it and install it directly.SnailsvnLite
- After installation, simple settings are required to open:
Next, select the corresponding local path according to the prompts. Here I don’t have a localusr/local/bin
directory, so the second one is empty, and it seems that it can be created:
just follow the next step, see Go to the following page and it will be installed:
- start using:
- Click on the work blog, and then follow the instructions below to proceed step by step, as follows:
Okay, checkout is complete here. - For daily updates and submissions, please refer to the picture below.
Okay, it’s too detailed. Which method you prefer depends on your personal preference!
- Click on the work blog, and then follow the instructions below to proceed step by step, as follows: