git报错集合

来源:互联网 发布:成都cnc编程招聘 编辑:程序博客网 时间:2024/05/22 16:06

git clone https://git.coding.net/dingxxxx/Vcooline.git
报错如下:

Cloning into https://git.coding.net/Vcooline.gitfatal: unable to access 'https://git.coding.net: Empty reply from server

解决办法:
不要使用https的类型,使用ssh协议去git clone
git clone git@git.coding.net:/Vcooline.git

git clone的时候
报错如下:

fatal: unable to access 'https://git.coding.net/dinxxxxx/Vcooline.git/': SSL certificate problem: self signed certificate

解决办法:git config –global http.sslVerify false
也有可能是代码仓库是私有没有配置本机和远程的秘钥
详细配置可以参考上一篇
git clone的时候记得先git init

0 0
原创粉丝点击