Linux, svn revert to the specified version

Thinking

  • The latest version of the svn in front of the version (the version we want to) merge (merge) to (current version),
    namely reverse merger (reverse merge)

Step (Step 4)

  • Update to the latest version to ensure the differences and get the latest version number (eg: 59651)
# 保证无差异
svn revert
# 更新到最新版本,并获取最新版本号
svn up
  • Find the need to revert to the version number (eg: 58859)
# svn log -l number
# number是需要查看的log条数
svn log -l 5
  • It will determine the versions merged into the current version
# svn merge url -r xxxx:yyyy
svn merge http://127.0.0.1:88/svn/app/game -r 59651:58859
  • Submit data merge finished
# svn ci -m "comment"
svn ci -m "revert to 58859"

Guess you like

Origin www.cnblogs.com/freelancy/p/11290621.html