Better way to revert to a previous SVN revision of a file?

前端 未结 9 1110
小鲜肉
小鲜肉 2020-12-04 04:34

I accidentally committed too many files to an SVN repository and changed some things I didn\'t mean to. (Sigh.) In order to revert them to their prior state, the best I coul

9条回答
  •  醉梦人生
    2020-12-04 05:24

    I recently had to revert to a particular revision to debug an older build and this worked like magic:

    svn up -r 3340 (or what ever your desired revision number)
    

    I had to resolve all conflicts using "tc" option as I did not care about local changes (checked in everything I cared about prior to reverting)

    To get back to head revision was simple too:

    svn up
    

提交回复
热议问题