热门搜索 :
考研考公
您的当前位置:首页正文

GitHub Pages简单实用

来源:东饰资讯网

在github创建repository


第一步

首先从github克隆刚刚创建的仓库下来

$ git clone 

第二步

通过cd命令进入文件夹username.github.io,然后通过echo命令新建一个index.html,并将hello world输入到index.html

$ cd username.github.io
$ echo "Hello world" > index.html

第三步

将刚刚创建的index.html文件push到远程master主分支

$ git add --all
$ git commit -m "Initial commit"
$ git push -u origin master

最后

最后本人实现的博客

参考

Top