If you really want a copy of HEAD (the latest revision in repos), then you should
svn revert -R <path> // discard all your changes inside path (recursive)
svn update // get latest revision of all files (recursive)
本文介绍了一种方法,用于在Subversion (SVN) 中如何清除本地更改并强制更新到仓库中的最新版本。这对于想要保持代码同步,而又不保留本地修改的情况非常有用。
来源:http://stackoverflow.com/questions/3709197/is-it-possible-to-always-force-overwrite-local-changes-when-updating-from-svn
有时候,尝试别人的代码,会添加一些文件,或者对代码做一些改动,但是又不想影响owner,每次都拉取最新的数据,那么使用下述方法:
|
47
|
If you really want a copy of HEAD (the latest revision in repos), then you should
|
|
47
|
If you really want a copy of HEAD (the latest revision in repos), then you should
|

被折叠的 条评论
为什么被折叠?