用magit分割一个大块 [英] Splitting a hunk with magit

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

问题描述

我有两个编辑非常接近(因此是同一个大块的一部分),我想单独提交。您可以使用 Ctrl + Space

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?

推荐答案

/ kbd>(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天全站免登陆