首页 > 技术文章 > SVN Basics

ezhar 2020-12-31 18:14 原文

  1. Show all of the committed history:

    svn log
    
  2. Show the current repositories' info, including its URL:

    svn info
    
  3. Commit current working tree:

    svn commit -m "YOUR COMMIT MESSAGE"
    
  4. Update to the latest version:

    svn update
    
  5. Roll back to relevant version from current working tree:

    svn merge -r currentVersionNumber:versionNumberToGoBackTo YOUR_REPOS_URL
    
  6. Show the differences form version X between version Y:

    svn diff -r X:Y [YOUR_REPOS_URL]
    
  7. Show current status:

    svn status
    

推荐阅读