28e8e6436f791707e7450f456b1780c0

Octopress 使用問題

2012-02-26 23:14:10 +0800gigigiOctopress 節點 中發起
最後由 cyanglee2012-03-01 00:03:43 +0800回應 , 310次閱讀

有個問題想請教~我照網路上安裝好從官方提供的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應該要如何做?

謝謝

截至 2012-03-01 00:03:43 +0800,共收到 3 條回應
C317e3b04079aa241eb81a8448a11696
cyanglee 1樓, 於2012-02-27 21:18:58 +0800回應

應該是在 master branch 然後 rake gen_deploy 或是 rake deploy 就可以了.

28e8e6436f791707e7450f456b1780c0
gigigi 2樓, 於2012-02-27 22:42:09 +0800回應

所以我 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)

謝謝

C317e3b04079aa241eb81a8448a11696
cyanglee 3樓, 於2012-03-01 00:03:43 +0800回應

應該是先 clone octopress到你 local 端, 然後依照 octopress 的說明 setup github page :
http://octopress.org/docs/deploying/github/ 過程中會問你 github 的 repository 等等問題.

所以其實你應該是要 octopress 下面執行那些 rake 相關的指令, 而非你自己 github clone.

需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊