首页 > 解决方案 > 警告在 git commit

问题描述

有谁知道如何解释这些警告?
我已经完成了整个通信配置和 ssh 密钥。

~/MIT/arlindomcorrea.github.io (main)
$ git commit -m 'try 4'

**[WARN]** Non-allowed remote URL in the repo: git@github.com:arlindomcorrea/arlindomcorrea.github.io.git

**[WARN]** File index.html is encoded in an unsupported format and was not checked!

[main 322db0b] try 4
 1 file changed, 1 insertion(+)

一切git push顺利。

标签: gitgithub

解决方案


首先检查您的钩子文件夹,是否有任何活动钩子(可能是客户端钩子,如预提交钩子)

通常, agit commit -n -m 'try 4'绕过预提交挂钩而不显示这些消息。
如果您可以检查,那将确认一个活动的预提交脚本。


推荐阅读