1.在个人仓库中找到setting

2.在setting内找到下图按钮,用于生成gh-pages分支
注: 展示项目需要放在gh-pages分支下展示

3.将远程仓库clone到本地
此时clone下的仓库有两个分支master与gh-pages
4.本地库切换为gh-pages分支
git checkout gh-pages
5.将本地gh-pages内容替换为想要展示的项目内容
6.使用remote命令将本地gh-pages内容push到远程库中
1.在个人仓库中找到setting
3.将远程仓库clone到本地
此时clone下的仓库有两个分支master与gh-pages
4.本地库切换为gh-pages分支
git checkout gh-pages
5.将本地gh-pages内容替换为想要展示的项目内容
6.使用remote命令将本地gh-pages内容push到远程库中
本文标题:如何展示github上的项目
本文链接:https://www.haomeiwen.com/subject/nhlopttx.html
网友评论