1. Import code from local to server (first initialize import) Enter SVN Import/users/apple/documents/eclipse_workspace/weibo svn://localhost/mycode/in the terminal Weibo--USERNAME=MJ--password=123-m "Initialize import" I explain the meaning of the instruction: will all the contents of the/users/apple/documents/eclipse_workspace/weibo, Upload to the Weibo directory of the server Mycode warehouse, followed by the "Initialize import" in double quotes is note 2. Download the code from the server side to the client local input svn checkout Svn://localhost/mycode--USERNAME=MJ in the terminal --password=123/users/apple/documents/code I explain what the instructions mean: Download the contents of the Mycode repository from the server to the/users/apple/documents/code directory 3. Commit the changed code to the server in step 2 has already downloaded the server-side code to the/users/apple/documents/code directory, now modify some of the code inside, and then submit these modifications to the server 1> open the terminal, first locate to/users/ Apple/documents/code directory, enter:cd/users/apple/documents/code2> input commit command: SVN commit-m "modified main.m file" This command will/users/apple/ All changes under Documents/code are synchronized to the server side, if I only modified the main. File to see the print information for the terminal: [Java] sending weibo/weibo/main.m transmitting file data . Committed Revision 2. 4. Update the server-side code to the client this should be the simplest instruction, in the terminal to locate the client code directory, such as the above/users/apple/documents/code directory, and then enter the command: SVN update
Using SVN under Mac