Common commands for SVN version management

SVN common commands

  1. Checkout the file locally:svn checkout PATH
  2. Add new files to the repository:svn add FILE
  3. Submit the changed files to the repository:svn commit -m "logmessage" [-N] [--no-unlock] PATH
  4. Lock/Unlock:svn lock -m "logmessage" [--force] PATH
  5. Update to a certain version:svn update -r m PATH
  6. View the status of a file or directory:svn status PATH
  7. Delete Files:svn delete PATH -m "logmessage"
  8. View logs:svn log PATH
  9. View file details:svn info PATH
  10. Compare the differences:svn diff PATH
  11. Merge the differences between the two versions into the current file:svn merge -r m:n PATH
  12. svn help:svn help
  13. List of files and directories under the repository:svn list PATH
  14. Create a new directory under version control:svn mkdir
  15. Revert local changes:svn revert
  16. Code repository URL changes:svn switch
  17. To resolve conflicts:svn resolved

Guess you like

Origin blog.csdn.net/qq_41323475/article/details/127893877