有人知道如何解释这些警告吗?
我已经完成了整个通信配置和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(+)
Thegit push
went OK.
首先检查钩子文件夹,是否有活动钩子(可能是客户端钩子,比如预提交的钩子)
通常,git commit -n -m 'try 4'
会绕过预提交钩子,而不是显示这些消息。
如果你可以检查,这将确认一个活动的预提交脚本。
;
真的很有用!这些特征是我可以改变的还是我可以忽略的?
证据:
arlindo.correa@CPX-VW4XYJ2UWTK MINGW64 ~/MIT/arlindomcorrea.github.io (main)
$ vim index.html
arlindo.correa@CPX-VW4XYJ2UWTK MINGW64 ~/MIT/arlindomcorrea.github.io (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: index.html
no changes added to commit (use "git add" and/or "git commit -a")
arlindo.correa@CPX-VW4XYJ2UWTK MINGW64 ~/MIT/arlindomcorrea.github.io (main)
$ git add .
arlindo.correa@CPX-VW4XYJ2UWTK MINGW64 ~/MIT/arlindomcorrea.github.io (main)
$ git commit -n -m 'try 5'
[main f8f4169] try 5
1 file changed, 1 insertion(+)
arlindo.correa@CPX-VW4XYJ2UWTK MINGW64 ~/MIT/arlindomcorrea.github.io (main)
$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 286 bytes | 143.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:arlindomcorrea/arlindomcorrea.github.io.git
322db0b..f8f4169 main -> main``