你看得懂英文的话,可以完全忽略下文的内容。官方的办法
创建一个存储,这个仓库的名称必须是 username.github.io username 是你的Github账户名。
我是Macbook 使用的Terminal ,windows或者使用其他方法的用户移步这里,自行查阅吧 官方的办法
1.克隆代码到本地
git clone https://github.com/username/username.github.io
2.进入克隆后的本地仓库
cd username.github.io
echo "Hello World" > index.html
git add --all
git commit -m "Initial commit"
git push -u origin master
5.进入浏览器打开自己的页面试试吧
http://username.github.io