上传至服务器
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。
> 服务器添加文件
添加文件位置
- 示例:
*/public/image "image"文件夹若没有可以新建用来存放图片,文件夹名称可以随便起,只要能记得住就行,其他如此类推···
添加图片
本地图片嵌入[本地文件读取]
- 示例:

网页图片嵌入[感谢@Paulzzh提供的东方随机图片API]
- 示例:

添加视频
在线视频嵌入[哔哩哔哩动画提供]
- 示例:
<iframe height=498 width=510 src="//player.bilibili.com/player.html?aid=289429224&bvid=BV1Nf4y147JD&cid=306065089&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
本地视频嵌入[本地文件读取]
- 示例:
暂无
> Git问题汇总
【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
【Git】SSL certificate problem: unable to get local issuer certificate错误
描述:【博客园】无法使用 Git clone
过程:这是由于当你通过HTTPS访问Git远程仓库的时候,如果服务器上的SSL证书未经过第三方机构认证,git就会报错。原因是因为未知的没有签署过的证书意味着可能存在很大的风险。解决办法就是通过下面的命令将git中的sslverify关掉
【Git】SSL certificate problem: unable to get local issuer certificate错误
描述:博客园
过程:
【Git】如何用git上传代码到github详细步骤
描述:CSDN
过程:
解决方法:
https://blog.csdn.net/zeng092210/article/details/95622318
【Git】连接远程仓库
描述:博客园
过程:
【Git】链接远程仓库
描述:菜鸟教程
过程: