Pragmatic version control using subversion

Source: Internet
Author: User
Tags svn update
  1. Do not add automatically generated files to version control, such as the bin directory and OBJ directory.
  2. Svnadmin create/users/zhangronghua/documents/svntest can create a repository.
  3. Run SVN import. File: // users/zhangronghua/documents/svntest-M "the first import" in the specified directory to add the current directory to SVN.
  4. SVN Co file: // users/zhangronghua/documents/svntest sesame you can create a new sesame directory under the current directory and checkout (CO) the content in the repository to the newly created sesame directory.
  5. SVN status filename.txt indicates the status of the filename.txt file.
  6. SVN diff filename.txt supports diff files
  7. SVN commit-M "The commit note" can be changed by commit
  8. SVN log filename.txt can view logs. SVN log -- verbose filename.txt can display actions (such as m, a...) when viewing logs ...)
  9. SVN update can update the current directory
  10. SVN add *** can be added to SVN.
  11. SVN supports the following protocols: SVN, SVN + SSH, HTTP/https
  12. SVN propset checked-by "imzrh" filaname.txt can add attributes
  13. SVN propedit checked-by filename.txt can edit attributes
  14. SVN proplist filename.txt can list attribute names
  15. SVN propget checked-by filename.txt can get the attribute value
  16. SVN propedit SVN: Ignore directory can be used to set which types of files are ignored.
  17. SVN propedit SVN: EOL-style can be used to set the line Terminator style (native, CRLF (Windows), LF (MAC/Linux), Cr (old Mac ))
  18. SVN copy sourcefile targetfile can copy files
  19. SVN move sroucefile targetfile can be a RENAME File
  20. SVN blame filename.txt displays what revision is generated in the first line of the file, who the submitter is, and what the content is. (Line-by-line history)
  21. SVN merge-r 27:26. All files in the current directory can be restored from version 27 to version 26, that is, modification of version 27 is discarded.
  22. If the tag is checkinCodeThe tag is automatically changed to a branch, but it is not automatically transferred to the branch directory.
  23. SVN mkdir-M "create branches directory on first branch creating" file: // users/zhangronghua/documents/sesame create a new branches directory in repository.
  24. SVN copy-M "create release branch for 1.0" file: // users/zhangronghua/documents/sesame file: /// users/zhangronghua/documents/sesame/branches/re-1.0 will create a rh-1.0 of branch.
  25. SVN switch file: // users/zhangronghua/documents/sesame/branches/re-1.0 changes the current directory to local copy of re-1.0.
  26. Set SVN. Editor = sublime2.app can set the default editor for comments, but it only works in the current terminal. To keep working, create an environment variable for SVN. Editor.

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.