用 Subversion 的 Merge 來 Undo

如果做了一個 mega commit 後要 undo 的方法:(可以是上百行、上千行、上萬行,反正不想要手動改回來)

svn merge -r 1234:1233 . .
svn commit

這個動作其實就是做一個 r1234 與 r1233 的 diff 後 patch 進 working repository,然後 commit 出去。

This entry was posted in Computer, Murmuring, Programming, Software. Bookmark the permalink.

3 Responses to 用 Subversion 的 Merge 來 Undo

  1. Pingback: 一些 SVN 的介紹網站 « 竹北小黑

  2. Pingback: Subversion Undo at Gea-Suan Lin’s BLOG

  3. Pingback: sonicat » Blog Archive » svn tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>