Use of svn command under mac

Common commands
1. Checkout the file to the local directory
    svn checkout path (path is the directory of the server)
   For example: svn checkout http://www.baidu.com/svn/meal/ Get svn://localhost/domain

2. Version Add file command
svn add file in the library,
for example: svn add test.java
svn add *.java (add all java files in the current directory)

3. Submit the modified file to svn
svn commit -m "LogMessage" [-N] [--no--unlock] PATH (if the hold item is selected, use the -no-unlock switch)

For example: svn commit -m "add test java file to svn" test.java
shorthand: svn ci


4. lock/ Unlock
svn lock -m "LockMessage" [--force] PATH
Example: svn lock -m "lock test file by cd " test. java
svn unlock PATH


5. Update to a certain version
svn update -rm path
For example:
svn update If there is no directory behind it, all files in the current directory and subdirectories will be updated to the latest version by default.
svn update -r 200 test.php (restore the file test.php in the repository to version 200)
svn update test.php (update, synchronize with the repository. If it is prompted to expire when submitting, it is because of conflict and needs to be First update, modify the file, then clear the svn resolved, and finally submit the commit)
Shorthand: svn up




reprint http://www.cnblogs.com/snandy/p/4072857.html




Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326976884&siteId=291194637