This article reprinted to http://blog.sina.com.cn/s/blog_6bfa2fc10101euf6.html
Getting Started with Mac SVN command line
1. Initializing the project
SVN import/users/cress/Local project directory https://server/project directory-M "Initial import"
The above command enter submit, the corresponding prompt message "need to enter the password, user name, follow the prompts to enter."
Examples are as follows: cressmatomac-mini:conf cress$ SVN import/users/cress/Local project directory https://server/project directory-M
"Initial Import"
Authentication Realm:xxxxxx
Password for ' cress ': Authentication realm:xxxxxx
Username:harry
Password for ' Harry ':
Adding (BIN)/users/cress/Local project directory
Committed Revision 1.
Description: SVN import:
Import/users/cress/Local project directory: The project directory on the local computer that needs to be imported
svn://server/project directory: Directories saved to the SVN server
-M: The message parameter of this SVN command is abbreviated, can be seen by SVN help.
"Initial Import": The operation of this command record description, you can fill in the content, preferably in line with the meaning of this command.
2. Download use Project SVN Co https://server/project directory
First create an empty directory locally/users/cress/test-0406, the name is best defined for this export meaning "personal habits: Project + Time", and then use the above command to export the project modification.
Description: SVN CO: Exports the current latest version from the server to the local directory, the CO is checkout shorthand. https://server/project directory: Server directory or file
3. Add File svn add test.txt
Normally, the output information is as follows: A Test.txt is not updated to the SVN server at this time, but rather to create some hidden SVN log information locally, which needs to be submitted using the commit command.
Description: SVN add: Add command test.txt: Local file you want to add
4. Submit the added files, or make local modifications to the server side
SVN ci-m "Add test.txt by Test"
Normal output information will be as follows: Adding test.txt transmitting file data. Committed Revision 62.
Description: The shorthand for SVN ci:svn commit.
-M: Same as above 1 description
5. Delete the corresponding content in the project
SVN delete https://server/project directory/file name-M "Delete test.txt for test"
Normal output of this modified version, as follows: Committed revision 64.
Description: SVN Delete: Delete command, dangerous operation, do not delete things ah.
https://server/project directory/file name: with 1 instructions
-M: Same as 1 description "Delete test.txt for test": Same as 1 description
6. If someone else has made changes, use SVN up to update the local project content
SVN up normally prompts for the output version number, as follows: at revision 62.
7. Check the file status after you have made the changes locally
SVN status normally outputs the state of the difference between the local file and the server file.
For example: A test.txt description: The output content shows that there is a test.txt file that needs to be added and submitted to the server.
8. Simple export of a clean project content
The SVN export https://server/project directory operation is similar to 2, but the project content does not contain SVN hidden record information.
9. Linux under SVN relocate command [modify SVN address]
SVN switch--relocate http://oldPath http://newpath
------------------------------
Resolves SVN authorization failed exception http://www.wp31.com/717.html
Configure SVN server http://blog.sina.com.cn/s/blog_6dce99b10100wxbl.html under Mac
Detailed description of the Linux command line Common SVN commands (1) http://os.51cto.com/art/200908/143157.htm
Http://www.360doc.com/content/12/0118/14/1431424_180175427.shtml
Getting Started with Mac SVN command line