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

来源:互联网 发布:mac 显示器校准 编辑:程序博客网 时间:2024/04/30 23:44

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

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



47down voteaccepted

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)

47down voteaccepted

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)
0 0
原创粉丝点击