首页 > 代码库 > svn update -r m path 代码还原到某个版本
svn update -r m path 代码还原到某个版本
[root@ok 资料库]# svn log 简历 ------------------------------------------------------------------------r174 | svnroot | 2016-08-26 08:52:06 +0800 (Fri, 26 Aug 2016) | 1 line+12k------------------------------------------------------------------------r141 | svnroot | 2016-08-06 12:28:21 +0800 (Sat, 06 Aug 2016) | 1 line增加新的项目------------------------------------------------------------------------r140 | svnroot | 2016-08-06 12:18:18 +0800 (Sat, 06 Aug 2016) | 1 line增加换行------------------------------------------------------------------------r139 | svnroot | 2016-08-06 12:15:35 +0800 (Sat, 06 Aug 2016) | 1 line增加换行------------------------------------------------------------------------r138 | svnroot | 2016-08-06 11:01:06 +0800 (Sat, 06 Aug 2016) | 1 line删除最后一行------------------------------------------------------------------------r137 | svnroot | 2016-08-06 10:43:24 +0800 (Sat, 06 Aug 2016) | 1 linexg------------------------------------------------------------------------r136 | svnroot | 2016-08-06 10:42:24 +0800 (Sat, 06 Aug 2016) | 1 linexg------------------------------------------------------------------------r135 | svnroot | 2016-08-06 10:37:44 +0800 (Sat, 06 Aug 2016) | 1 line修改简历------------------------------------------------------------------------r134 | svnroot | 2016-08-06 10:33:14 +0800 (Sat, 06 Aug 2016) | 1 line------------------------------------------------------------------------
[root@ok 资料库]# cat 简历|head -n 1陈林 12k
[root@ok 资料库]# svn update -r 141 简历 U 简历Updated to revision 141.[root@ok 资料库]# cat 简历|head -n 1陈林[root@ok 资料库]#
回滚后之前的版本消失了
[root@ok 资料库]# svn log 简历------------------------------------------------------------------------r141 | svnroot | 2016-08-06 12:28:21 +0800 (Sat, 06 Aug 2016) | 1 line增加新的项目------------------------------------------------------------------------r140 | svnroot | 2016-08-06 12:18:18 +0800 (Sat, 06 Aug 2016) | 1 line增加换行------------------------------------------------------------------------r139 | svnroot | 2016-08-06 12:15:35 +0800 (Sat, 06 Aug 2016) | 1 line增加换行------------------------------------------------------------------------r138 | svnroot | 2016-08-06 11:01:06 +0800 (Sat, 06 Aug 2016) | 1 line删除最后一行------------------------------------------------------------------------r137 | svnroot | 2016-08-06 10:43:24 +0800 (Sat, 06 Aug 2016) | 1 linexg------------------------------------------------------------------------r136 | svnroot | 2016-08-06 10:42:24 +0800 (Sat, 06 Aug 2016) | 1 linexg------------------------------------------------------------------------r135 | svnroot | 2016-08-06 10:37:44 +0800 (Sat, 06 Aug 2016) | 1 line修改简历------------------------------------------------------------------------r134 | svnroot | 2016-08-06 10:33:14 +0800 (Sat, 06 Aug 2016) | 1 line------------------------------------------------------------------------
svn update -r m path 代码还原到某个版本
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。