开发者

How do I commit two changes to the same file separately in Tortoise SVN?

开发者 https://www.devze.com 2022-12-16 09:50 出处:网络
Consider a situation: I\'ve made multiple changes to 开发者_开发百科one versioned file and want to commit the changes. Now I realise that they\'d better be committed as two separate commits - so that

Consider a situation: I've made multiple changes to 开发者_开发百科one versioned file and want to commit the changes. Now I realise that they'd better be committed as two separate commits - so that some changes belong to one changeset and others - to another. How can I do that most efficiently?


Copy the file, use svn diff to undo the changes for the second changeset, commit the modified file with the first changeset, copy the file back, commit second changeset.


It depends on whether TortoiseSvn supports Hunk selection. TortoiseHg (for mercurial) does, so I assume Tortoisesvn does so too.

0

精彩评论

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

关注公众号