为git输入提交信息后应该做什么? [英] What to do after typing in commit message for git?

查看:160
本文介绍了为git输入提交信息后应该做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输入 git commit -a 后,会弹出一个文本编辑器,然后输入我的评论。在输入评论后我必须按下哪些按钮才能将它移动到实际提交的下一个阶段?



我在Windows上使用mysysGit默认设置。

解决方案

取决于您使用的文本编辑器。 Git选择环境变量EDITOR中指定的编辑器。在Linux系统上,这通常是Vi或Nano。弄清楚它是什么,然后参考相应编辑器的文档。

After I type in git commit -a a text editor pops up and I type in my comment. What buttons do I have to press after typing in the comment, to get it to move to the next stage of actually committing?

I'm using mysysGit on Windows with the default setup.

解决方案

Depends on the text editor you are using. Git chooses the editor specified in the environment variable "EDITOR." On Linux systems this is usually either Vi or Nano. Figure out which it is and then refer to the documentation for the appropriate editor.

这篇关于为git输入提交信息后应该做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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