用 magit 劈开一个大块头 [英] Splitting a hunk with magit

查看:16
本文介绍了用 magit 劈开一个大块头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 2 个编辑非常接近(因此是同一个大块的一部分),我想单独提交.是否有可能从 magit 内部分裂一个大块头?

I have 2 edits very close by (and therefore part of the same hunk), that I'd like to commit separately. Is it possible to split a hunk from within magit?

推荐答案

您可以使用 Ctrl+Space (C-SPC) 正确设置标记,magit 只会提交选定的部分.

You can set the mark correctly with Ctrl+Space (C-SPC) and magit will only commit the selected portion.

这篇关于用 magit 劈开一个大块头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆