Resources:
mkdir lovelypeter.github.com
cd lovelypeter.github.com
git init
touch README
git add README
git remote add origin git@github.com:lovelypeter/loverlypeter.github.com.git
echo "hi I am index.html">index.html
git add .
git ci
git push -u origin master
markdown: maruku
pygments: true
| You write: | You get: |
|---|---|
[Link](http://example.com/) |
Link |
*Italic* |
Italic |
**Bold** |
Bold |
* Listed * Items |
|
``` puts "hello" ``` |
puts "hello"
|
just don't have
_layouts/named_layout/, otherwise your layout files are all ignored and you don't know what's going on since there is no error msgjust don't have
layouts/namedlayout, otherwise your layout files are all ignored and you don't know what's going on since there is no error msgIf your github username is
Foo, the a repo namedfoo.github.comwon't make it as your blog repo name. You have to make itFoo.github.com.1,2,3 :-)
...4...
git push -u origin master
老是提示输入用户名和密码,怎么让bash记住呢?
@lufeihaidao 这是个常见问题,估计你是用 https 打头的 url 做的 clone。解决方法是打开
.git/config把里面的origin的 url 改成 ssh 的,类似这样:嗯确实这样,谢谢
果然是神器啊,我说怎么很多github上面的项目都有自己的个性主页。学习了。
github pages 的常见问题之一就是发现自己新推送上去的东西不能在 html 页面上显示,其实原因很简单,就是我们的内容里有 jekyll 不能接受的格式错误。
要找到这些错误可以在我们本地机器安装 jekyll,然后进行调试。
jekyll有点小敏感,没有本地预览的娃儿只有把所有除了文字以外所有可能导致错误的符号全部删除,哈哈,谢谢