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

前端 未结 9 1150
小鲜肉
小鲜肉 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:25

    What you're looking for is called a "reverse merge". You should consult the docs regarding the merge function in the SVN book (as luapyad, or more precisely the first commenter on that post, points out). If you're using Tortoise, you can also just go into the log view and right-click and choose "revert changes from this revision" on the one where you made the mistake.

提交回复
热议问题