卡在git提交窗口 [英] Stuck on git commit window

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

问题描述

我被困在这个窗口。我在git-cmd.exe之前执行了 git add -a ,然后执行了 git commit
如何离开这里?我写了我的提交信息,然后按回车,没有发生任何事情。



我很害怕关闭窗口,我在网上找不到任何东西,验证提交正确。




I am stuck on this window. i did a git add -a just before and then a git commit in git-cmd.exe . How can i get out of here? i wrote my commit message and press enter and nothing happened.

I'm affraid to just close the window and i find nothing on internet, the official site say nothing about how to validate a commit corectly.

解决方案

You are in a vi editor.

In order to save and exit from vi you need to do this:

To save the changes: ESC + :wq Or: ZZ
To discard the changes: ESC + :q!

(Look on the button of the screenshot how to exit - the last line)

这篇关于卡在git提交窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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