
7

Setup Octopress from existing repo
source link: https://fann.im/blog/2012/12/08/setup-octopress-from-existing-repo/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Setup Octopress from existing repo
Dec 8, 2012
从已有的 Octopress repository 重新配置 GitHub Pages 托管博客,比如换了电脑却没有备份原来的设置。要求 source 分支已 push。
git clone [email protected]:fannheyward/fannheyward.github.com.git blog
cd blog
git checkout --track origin/source
# setup ruby with rbevn or rvm
gem install bundler
bundle install
rake gen_deploy # in order to create _deploy dir
# setup blog branch
cd _deploy/
git init
git add .
git commit -m "new setup."
git remote add origin [email protected]:fannheyward/fannheyward.github.com.git
cd ..
rake deploy
其实就是做了一系列的 git 操作,设置 repo,branch 等,熟悉 git 很容易搞定。
Was this page helpful?
</article
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK