简体   繁体   English

马吉特:我可以从之前的提交中撤消一个大块头吗?

[英]Magit: can i reverse a hunk from a previous commit?

If i'm looking at the log messages and select one specific commit to view the diff is it possible to revert (or reverse appply) a specific hunk of that commit? 如果我正在查看日志消息并选择一个特定的提交来查看差异,是否可以恢复(或反向应用)该提交的特定块? I know there is a revert commit option but i'm only interested in one small part of it. 我知道有一个恢复提交选项,但我只对它的一小部分感兴趣。

Thanks in advance. 提前致谢。

Yes, and it's the same key-binding whether it's a commit, a file, a hunk, or a marked region. 是的,它是相同的键绑定,无论是提交,文件,大块还是标记区域。 Just type v with the thing in question highlighted, and Magit will prompt you accordingly. 只要输入与突出问题的东西v和Magit将相应提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM