Git提交请求评论 [英] Git commit asking for comment

查看:98
本文介绍了Git提交请求评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有时忘记输入一个git commit操作的注释,那么屏幕如下所示:


然而,我后来就是无法摆脱这个窗口,除非我关闭并再次打开命令寡妇。任何人都可以请帮助我如何处理这种情况?



问候

解决方案

你有为Git设置的默认编辑器吗?试试这个(用您选择的编辑器替换nano):
$ b

git config --global core.editor nano


If I sometime forget to enter a comment for a git commit operation, then a screen as like follows appear to me:

However, i later on, just can't get rid of this window unless i close and open the command widow again. can anyone please help my how to handle that scenario ?

Regards

解决方案

Do you have a default editor set for Git? Try this (replace nano with your editor of choice):

git config --global core.editor nano

这篇关于Git提交请求评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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