svn:總使用最新數據忽略個人修改

來源: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)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章