svn:总使用最新数据忽略个人修改

来源:http://stackoverflow.com/questions/3709197/is-it-possible-to-always-force-overwrite-local-changes-when-updating-from-svn

有时候,尝试别人的代码,会添加一些文件,或者对代码做一些改动,但是又不想影响owner,每次都拉取最新的数据,那么使用下述方法:



47 down vote accepted

If you really want a copy of HEAD (the latest revision in repos), then you should

svn revert -R  // discard all your changes inside path (recursive)
svn update           // get latest revision of all files (recursive)

47 down vote accepted

If you really want a copy of HEAD (the latest revision in repos), then you should

svn revert -R  // discard all your changes inside path (recursive)
svn update           // get latest revision of all files (recursive)

你可能感兴趣的:(svn)