git:如何从外部块中减去内部块

时间:2019-01-24 13:49:12

标签: git magit

有时经过一些编码后,我遇到以下情况:

@
- Some lines which are moved
- Some lines which are moved
- Some lines which are moved
- Some lines which are moved
- Some lines which are moved
@
+ Some lines which are moved
+ Some lines which are moved
+ Some lines which are moved
+ Some line  which is actually added
+ Some lines which are moved
+ Some lines which are moved

现在说Some line which is actually added应该在其自己的提交中,而不是属于需要其他行移动的提交的一部分。

即使使用Magit出色的区域分块,我也不容易做到这一点,因为内部块随后将应用于新的上下文/位置,而应应用于旧的上下文。 其他人如何用最少的精力来解决这个问题?

0 个答案:

没有答案