Octopress 使用問題
有個問題想請教~我照網路上安裝好從官方提供的octopress到我的 github上
那我在另一台電腦使用 git clone [email protected]:Jasontw/jasontw.github.com.git
cd jasontw.github.com //切到下載資料夾內
git branch //只看到master分支
* master
git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/source
之後我
git checkout -b source origin/source
git branch // 這時候有切到 source分支
master
* source
想請問一下如果再post文章在push到github應該要如何做?
謝謝
應該是在 master branch 然後 rake gen_deploy 或是 rake deploy 就可以了.
所以我 git clone , local 是 master 分支直接發布文章? 而不需要git checkout -b source origin/source 是嗎?
1. git clone [email protected]:Jasontw/jasontw.github.com.git
2. cd jasontw.github.com
3.[vmware@debian ~/share/jasontw.github.com]$ rake 'new_post["title"]'
就會出現下面訊息~請問是缺了什麼嗎?
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
(See full trace by running task with --trace)
謝謝
應該是先 clone octopress到你 local 端, 然後依照 octopress 的說明 setup github page :
http://octopress.org/docs/deploying/github/ 過程中會問你 github 的 repository 等等問題.
所以其實你應該是要 octopress 下面執行那些 rake 相關的指令, 而非你自己 github clone.