The Mac comes with the SVN command line, such as my upgrade to 10.10 (OSX Yosemite) after the command line version is 1.7.10
Here are some common commands
1. checkout files to a local directory
SVN checkout Path (path is a directory on the server) for example: SVN checkout Svn://192.168.1.1/pro/domain shorthand: SVN co
2 . Add a new file to the repository
3 . Submit the changed files to the repository
SVN commit-m "LogMessage" [-n] [--no-unlock] PATH (use –no-unlock switch if hold lock is selected) Example: SVN commit-m "Add test file for my test" t est.php shorthand: svn ci
4. Locking/unlock
5. Update to a version
6. view file or directory status
7. Delete Files
SVN delete path-m "delete test Fle" For example: SVN delete svn://192.168.1.1/pro/domain/test.php-m "Delete test file" or direct SVN delet E test.php then svn ci-m ' delete test file ', it is recommended to use this shorthand: SVN (del, remove, RM)
8. View Logs
SVN log path For example: SVN log test.php shows all the changes to this file and its version number
9. View File Details
SVN info Path Example: SVN info test.php
10. Compare Differences
11 . Merge the differences between the two versions into the current file
SVN merge-r m:n Path Example: SVN merge-r 200:205 test.php (the difference between version 200 and 205 is merged into the current file, but will generally conflict and need to be processed)
12. SVN Help
SVN helpsvn help CI
13 . List of files and directories under the repository
SVN list path displays all files and directories belonging to the repository in the path directory shorthand: SVN ls
14 . Create a new directory under version control
SVN mkdir: Create a new directory under the included version control. Usage: 1, mkdir PATH ... 2. mkdir URL ... Create a version-controlled directory. 1. Each directory specified in the working copy PATH will be created on the local side and added to the new schedule for the next commit. 2. Each directory specified in the URL will be created by submitting it to the repository immediately. In both cases, all intermediate directories must be pre-existing
15. Restore Local modifications
16. Code Base URL Change
SVN switch (SW): Updates the working copy to a different URL. Usage: 1, switch URL [Path]2, switch–relocate from to [PATH ...] 1. Update your working copy to map to a new URL that behaves like SVN update and merges the file on the server with the local file. This is the method that corresponds a working copy to a branch or tag in the same warehouse. 2, rewrite the working copy of the URL metadata to reflect the simple URL changes. When the repository's root URL changes (such as scheme name or hostname change), but the working copy is still mapped to the same directory as the same repository, use this command to update the corresponding relationship between the working copy and the warehouse.
17. Conflict Resolution
Mac SVN command Line