Partial Commits with Subversion

前端 未结 11 1134
北恋
北恋 2020-11-29 17:36

Given the case I made two independent changes in one file: eg. added a new method and changed another method.

I often don\'t want to commit

11条回答
  •  伪装坚强ぢ
    2020-11-29 18:01

    1. Open all the files you want to split in editor-of-choice
    2. Using a different tool set (on Win, use Spike's suggestion (the old version)) back out the second set
    3. Commit
    4. go back to your editor-of-choice and save all the files

    It's a little riskier than Spike's full suggestion but can be easier to do. Also make sure you try it on something else first as some editors will refuse to save over a file that has changed out from under them unless you reload that file (losing all your changes)

提交回复
热议问题