Common commands for SVN under Mac

Source: Internet
Author: User
Tags diff svn svn update

Yesterday we finally took SVN, and now make a small summary of the usual commands:

1, checkout
SVN Checkout SVN address, abbreviated: SVN Co SVN address

2. Add Files
svn add test.txt Add a single file
SVN Add * * Add all Files
SVN add *.php adds all files with the suffix PHP

3. Submit Documents
svn ci-m "description (can be left blank)" File name submit a single file
svn ci-m "description (can be left blank)" Submit all Files

4. Delete Files
svn Delete file name
shorthand: SVN (del, remove, RM)

5. Locking/Unlock
svn lock-m "Lockmessage" [--force] PATH
svn unlock-m "Lockmessage" [--force] PATH

6, SVN update, abbreviated SVN up
SVN update updates all Files
svn update-r test.php (restore file test.php from repository to version)
SVN update test.php (update single file, sync in Repository.) If the prompt expires at the time of submission, it is because of the conflict, you need to update, modify the file, then clear the SVN resolved, and then commit the commit)

7. View File Details
SVN info file name

8. View Logs
svn log file name

9. The meaning of the SVN status [path] character is as follows:
shorthand: SVN st
"no modifications. No changes.
' A ' Added. Newly added items
' C ' conflicted. The project content is in conflict with the data that has been updated
' D ' Deleted. Items to delete
' I ' ignored. Ignored
' M ' Modified. Content changes
' R ' replaced. is a directory in the SVN repository, which is a file with the same name locally. and vice versa.
' X ' project not versioned, related to external connection
'? ' files that are not versioned
'! ' item is missing, or the directory is incomplete
' ~ ' has a project that is not versioned locally and has a project with the same name in the SVN repository

10. Compare Differences
svn diff path
example: SVN diff test.php
svn diff-r m:n Path (difference between version m and version N)
Example: SVN diff-r 200:201 test.php
shorthand: svn di

11. Merge the differences between the two versions into the current file
svn merge-r m:n path
For example: SVN merge-r 200:205 test.php (the difference between version 200 and 205 is merged into the current file, but generally conflicts occur and need to be addressed)

12. SVN Help
SVN Help
svn help CI


Common commands for SVN under Mac

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.