Git遇到hint: Waiting for your editor to close the file…
然后弹出了默认编辑器,关掉编辑器后就会有:
Aborting commit due to empty commit message.
这是我在commit时遇到的,我是这么commit的:
$ git commit
hint: Waiting for your editor to close the file...
Aborting commit due to empty commit message.
原因是没有提交注释信息,每次commit都要提交注释的:
$ git commit -m '在单引号或双引号里写本次commit的注释'
[master 77ebc93] 在单引号或双引号里写本次commit的注释
1 file changed, 0 insertions(+), 0 deletions(-)
问题解决。
如果需要写多行注释,参照以下链接:
以上解决办法来自:Commit message 和 Change log 编写指南
本文在解决方案上添加了问题描述。
Git遇到hint: Waiting for your editor to close the file...或者Aborting commit due to empty commit message.的解决办法
问题: 在git bash中使用git rebase -i时提示:hint: Waiting for your editor to close the file... "C:/Program Files (x86)/GitExtensions/GitExtensions.exe"
原因: 这是由于前端时间我卸载了GitExtensions工具,导致git默认的编辑器还是用的GitExtensions,当需要进行编辑的时候找不到这个工具,所以报错
解决办法: 在git bash中使用以下命令修改默认编辑器为v
在拉取远端新代码时报错 如下:
hint: Waiting for your editor to close the file... "D:\vs code\Microsoft VS Code\_\Code.exe" --wait: D:\vs code\Microsoft VS Code\_\Code.exe: No such file or directory
error: There was a problem with the editor '"D:\vs code\Microsoft VS...
merge的时候报错h
int:
Waiting for your
editor to
close the
file… error
解决方案:
按左上角esc退出,然后输入 :wq (表示强制写入保存好像是)
参考的文章找不到了,侵权了联系我
最近使用git,发现之前的命令都不太会用了,所以借这个机会把之前学习GitHub时的笔记再温习一下,把常用命令整理下来,方便以后查阅。 关于如何使用GitHub,我这里有个详细笔记GitHub使用详解,在这里只记录常用的命令和遇到的报错。
我们从git的远程仓库克隆开始:
1. 把代码存储到远程仓库的流程
一般,我们是先从远程GitHub.com上建立自己的一个仓库,然后使用命令:
git clo...
安装了Git Bash,浏览的很多帖子中都提到,把Notepad++作为 git默认编辑器是比较流行的做法,于是就搜罗了一些操作方法,更改了默认的编辑器Vim。当然,直接输入vim命令来操作没有问题,但是当我通过pull拉取代码并存在冲突时,需要手动修改完冲突并提交,或者是直接拉取别人的多个分支实现快进合并时,正常情况下应该会自动调用配置的默认编辑器并生成对应的提交描述。
这个时候发现问题了,每次...
问题描述: 在使用
git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了.
index.lock文件是在.
git下面, 而.
git是一般是隐藏的, 那么可以通过以下命令删除即可.
rm -rf /Users/dianji/project/ccpay.h5/.
git/index.lock
///Users/dianji/project/ccpay.h5/.
git/index.lock是你的index.lock的目录, 通常直接复制报错信息里边的地址比较靠谱.
那这个index.lock有什么作用呢?
aa@aa-PC MINGW64 /f/online-center/cloud/server-functions_services (master) $ git branch -a #先查看下当前的本地和远程分支
* master
remotes/origin/HEAD...
npm ERR! Error while execut
ing:
npm ERR! /usr/bin/
git ls-remote -h -t https://
github.com/nhn/raphael.
git
npm ERR!
npm ERR! fatal: unable to access 'https://
github.com/nhn/raphael.
git/': Failed connect to
github.com:443; Connection timed out
error: failed to push some refs to 'gitee.com:zero0orez/test.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to