|
导航:[首页]->[www]->[搭建Github Page注意点]
#搭建Github Page注意点
- 对于username.github.com的账户,那么新建名为username.github.com的Repository将自动转换为Page页面,并且支持username.github.com直接访问
- 对于上面的Repository,不要在_config.yml文件中设置baseurl属性
- 所有的文件建议用utf8编码,但是需要注意使用无BOM格式编码
- 对于其他名字的Repository,需要手动配置才能开启Page功能,并且只能提交到gh-pages分支
- 对于其他名字的Repositor,必须明确的设置baseurl属性,路径为Repository的名称
- jekyll –server –auto 或者 jekyll –server –no-auto结合起来做本地调试
###Git基本操作(备份)
- git clone https://github.com/username/Repository.git
- cd Repository
- git add “some file”
- git commit -m “comment”
- git push origin master/gh-pages
|
|