开发者

I SVN updated, but I realize I messed up

How do I rollback to a previous revision? So that my f开发者_运维技巧iles are back to revision 400?


How about:

svn merge -r [current_version]:[previous_version] [repository_url]

svn commit -m “Reverting previous commit and going back to revision [previous_version].”

taken from http://mybravenewworld.wordpress.com/2007/11/13/subversion-how-to-revert-a-bad-commit/


svn update -r 400


Run the following command:

svn -r rev-no up file-name
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜