GIT 第14章 问题集锦 GIT 第14章 问题集锦

2016-07-27

一、HTTP request failed

还可能是sslVerify失败, 解决办法:

取消git sslVerify

git config –global http.sslVerify false

不过一般不推荐这么设置

二、SSL connect error

  • github不支持tlsv1.1后, 出现

git config --global http.sslversion tlsv1

三、用户名密码

git pull/push项目的时候总是提示要输入用户名密码的解决方案

git config --global credential.helper store

四、修改 github 上仓库的项目语言

① 问题原因: github 是根据项目里文件数目最多的文件类型,识别项目类型

② 解决办法:新建 .gitattributes 放置项目根目录

.gitattributes 的内容为(根据你想修改的代码语言进行编辑,下面是 PHP 代码语言)

*.js linguist-language=PHP
*.css linguist-language=PHP
*.html linguist-language=PHP

五、kex_exchange_identification

kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
fatal: Could not read from remote repository.

解决方法:

在 cmd 下执行以下清理 DNS 缓存

ipconfig/flushdns

六、authenticity

The authenticity of host 'github.com (20.205.243.166)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,就会报这样的错误,此时选择 yes 回车之后,即可,同时生成缺少的 known_hosts 文件

七、codepub

暴走皮皮虾之代码发布系统,是现代的持续集成发布系统,由后台管理系统和agent两部分组成,一个运行着的agent就是一个节点,本系统并不是造轮子,是"鸟枪"到"大炮"的创新,对"前朝遗老"的革命。

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开微信扫一扫,即可进行扫码打赏哦

阅读 2653