Git疑难解答
上传至服务器
source up.sh
部署到服务器
1
2 hexo g -d
hexo s
验证是否连接上Github
ssh -T git@github.com
回车看到:You’ve successfully authenticated, but GitHub does not provide shell access 。这就表示已成功连上github。
【Git】ssh: connect to host github.com port 22: Connection refused错误
描述:
过程:在.ssh文件夹下创建“config”后,输入以下内容
> 1
2
3
4
5
6
Host github.com
User hongyanpumeng@gmail.com //此处的邮箱应填为注册GitHub时的邮箱
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
1 | Host github.com |
【Git】SSL certificate problem: unable to get local issuer certificate错误
描述:【博客园】无法使用 Git clone
过程:这是由于当你通过HTTPS访问Git远程仓库的时候,如果服务器上的SSL证书未经过第三方机构认证,git就会报错。原因是因为未知的没有签署过的证书意味着可能存在很大的风险。解决办法就是通过下面的命令将git中的sslverify关掉
> 解决方法
> https://blog.csdn.net/guang_s/article/details/110471236
【Git】SSL certificate problem: unable to get local issuer certificate错误
描述:博客园
过程:
> 解决方法
> https://www.cnblogs.com/jaxu/p/12027839.html
【Git】如何用git上传代码到github详细步骤
描述:CSDN
过程:
解决方法:
https://blog.csdn.net/zeng092210/article/details/95622318
【Git】连接远程仓库
描述:博客园
过程:
【Git】链接远程仓库
描述:菜鸟教程
过程:
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 SnowMiku的博客!
评论
WalineValine