Skip to content

Instantly share code, notes, and snippets.

@wangzz
Last active March 1, 2016 02:33
Show Gist options
  • Save wangzz/e322918c57d053268133 to your computer and use it in GitHub Desktop.
Save wangzz/e322918c57d053268133 to your computer and use it in GitHub Desktop.
记录SVN相关内容
记录SVN相关内容
@wangzz
Copy link
Author

wangzz commented Oct 9, 2014

撤销本地修改

针对文件

$ svn revert foo.c
Reverted foo.c

针对目录

$ svn revert --recursive .
Reverted newdir/afile
Reverted foo.c
Reverted bar.txt

@wangzz
Copy link
Author

wangzz commented Dec 23, 2015

回滚到指定版本

  • 命令格式
svn merge -r [当前版本号]:[想回滚的版本号] [操作目录]

比如:

svn merge -r 214265:211042 .

将当前目录从版本号214265回滚到版本号211042

@wangzz
Copy link
Author

wangzz commented Mar 1, 2016

svn mv 移动文件可以保留提交记录,不要直接移动文件夹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment