Some SVN tools are convenient and intuitive to manage, but the efficiency is faster than that of command lines.
(Due to poor memory, I often forget some knowledge. For example, I don't need to be unfamiliar with the command line for a few days. In order to avoid forgetting to find information again, back up the svn command for future use)
View all SVN logs
SVN log
(Too many logs, to stop, CTRL + Z)
View SVN Information
SVN info
Download the SVN version (associated with SVN)
SVN checkout http://blog.csdn.net/james_1010
Download a certain version of SVN (no SVN Information)
SVN export-r 123 http://blog.csdn.net/james_1010(123 is the version number of the version to be downloaded)
Restore the code on the svn server to a specific version.
SVN merge-r 12:111 http://blog.csdn.net/james_1010 (to restore the code on SVN to version 111)
View File changes in the current SVN associated directory
SVN St
Code submission
Svn ci Yourfile. m yourfile2.m-M "two M files are submitted"
Compare the changes of code on a file with SVN
SVN diff Yourfile. m
(This command only displays different code segments. If you want to compare the differences between two files or projects, use the xcode tool filemerge.
Filemerge open mode, right-click the xcode icon on the dock, and select Open developer tool ---> filemerge)
Delete An SVN server code file
SVN del file1.m
Then you need to submit SVN ci-M "Submit for deletion"
Add a new file
SVN add file1.m
Submit the same job as above.
(To submit or delete objects with @ names, add @ at the end, for exampleJames_1010@ 2x.png the following command is required: SVN addJames_1010@ 2x.png @)