Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在.git/COMMIT\u EDITMSG中插入更改id行_Git - Fatal编程技术网

无法在.git/COMMIT\u EDITMSG中插入更改id行

无法在.git/COMMIT\u EDITMSG中插入更改id行,git,Git,当我尝试执行git提交时,出现以下错误 panther2@ubuntu:~/panther1/.repo/manifests$ git commit -m "Adding manifest for release" git: 'interpret-trailers' is not a git command. See 'git --help'. cannot insert change-id line in .git/COMMIT_EDITMSG 这是第一次,我得到了错误。

当我尝试执行git提交时,出现以下错误

panther2@ubuntu:~/panther1/.repo/manifests$ git commit -m "Adding manifest for release"
git: 'interpret-trailers' is not a git command. See 'git --help'.
cannot insert change-id line in .git/COMMIT_EDITMSG
这是第一次,我得到了错误。有以前的提交

我的git版本是1.9.1

请先尝试,然后查看错误消息是否仍然存在

还要检查提交消息的内容(因为您以前的提交已成功完成)


确实会触发该命令。

您的git版本可能太旧,无法支持此命令。为什么在以前的提交中没有发生此错误?我的git版本是1.9.1在hook
commit msg
中调用该命令。
commit-msg
是否已更新?我们不使用commit-msg,谢谢!这个解决办法很有效。