Git Gerrit Code Review-如果我使用升华文本进行提交,则更改Id无效
今天要意识到,如果我使用sublime文本而不是nano来提交或修改我的更改,我将不允许我进行git评论Git Gerrit Code Review-如果我使用升华文本进行提交,则更改Id无效,git,merge,sublimetext3,gerrit,nano,Git,Merge,Sublimetext3,Gerrit,Nano,今天要意识到,如果我使用sublime文本而不是nano来提交或修改我的更改,我将不允许我进行git评论 remote: Hint: To automatically insert Change-Id, install the hook: remote: gitdir=$(git rev-parse --git-dir); remote: remote: To ssh://xxxxxxxx ! [remote rejected] HEAD -> re
remote: Hint: To automatically insert Change-Id, install the hook:
remote: gitdir=$(git rev-parse --git-dir);
remote:
remote:
To ssh://xxxxxxxx
! [remote rejected] HEAD -> refs/publish/master/xxxx (missing Change-Id in commit message footer)
error: failed to push some refs to 'ssh://xxxxxx'
因此,如果我使用sublime提交邮件,则不会包含更改Id
我将编辑器更改为nano,更改Id将包含在success中:
git config --global core.editor nano
我想继续使用升华的文字为我的msg,所以有人有一个想法,如何解决这个问题
谢谢。您是否已使用以下命令设置升华编辑器
git config --global core.editor "subl -n -w"
使用sublime编辑器时会发生什么情况?提交消息已正确创建(仅缺少更改id)?是:)更改id和我无法进行代码检查您使用的是什么(Linux、Windows、Mac)?我正在使用Linux UBUNTUANLY
commit msg
hook未被调用。您可以尝试将一些调试消息放入commit msg
hook(在.git/hooks
下)以确认是否调用了它。如果编辑器异常退出,则正常流可能中断。是的,它已添加到~/.gitconfig文件的[core]部分