Svn for Mac and svn for Mac
As a person who has been using the windows system, I really don't know how to use svn on mac. I need it now by chance.
After checking, I found that the mac comes with svn. After I installed xcode, I installed Command Line Tools again.
1. Open terminal Input
Xcode-select -- install
Click Install to complete the installation in a few minutes.
2. Run this command to check the version number. if the version number is correct, the installation is complete.
Svn -- version
3. The code downloaded from the server to the client is still input by the terminal.
Svn checkout svn: // 192.168.1.1/dev/project -- username = svnUserName -- password = svnPasword/Users/huangenai/test
Svn: // 192.168.1.1/dev/project is the server code address.
Username: svn User Name
Password: svn User password
Download to the path on your computer/Users/huangenai/test
4. Update the server code to the client. First, run cd test to enter the file directory where you want to update the code and then execute the command.
Svn update
5. SVN help
Svn help
We can see a lot of svn commands such as log, add, and so on. Here we will not discuss them one by one.
If the command is troublesome, you can download a svn client.
This article is my work record. If you have any questions, please comment below. repost the article to indicate the source.
If you have any help, please give me a thumbs up at the bottom right of the mouse. Your support is my greatest motivation.