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


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.
(Submit or delete some files with names containing @, you need to add a @ at the end, for example, the james_1010@2x.png requires the following command svn add james_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.