【发布时间】:2016-04-26 20:43:54
【问题描述】:
git clone github.com/ubermankapil/Restaurant.git
cd repository
git checkout --orphan gh-pages
git rm -rf .
echo "My Page" > index.html
git add index.html
git commit -a -m "First pages commit"
git push origin gh-pages
我按照上述步骤(来自https://help.github.com/articles/creating-project-pages-manually/),之后我访问了存储库网址: http://ubermankapil.github.io/Restaurant/
我没有得到我网站的实际内容,而只是显示“我的页面”。 如何获取要在该存储库 url 上显示的实际内容 ?
【问题讨论】:
-
请查看我的答案的更新,因为我相信它会解决您的问题。
标签: git github repository host