IOS-use command line to manage SVN

Source: Internet
Author: User

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 @)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.