Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created August 2, 2011 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trashhalo/1120457 to your computer and use it in GitHub Desktop.
Save trashhalo/1120457 to your computer and use it in GitHub Desktop.
#Created a github repository called trashhalo.github.com
mkdir trashhalo.github.com
cd trashhalo.github.com
git init
git remote add octopress git://github.com/imathis/octopress.git
git symbolic-ref HEAD refs/heads/source
#Pulling all of octopress into source branch
git pull octopress
git merge octopress/master
git remote add origin git@github.com:trashhalo/trashhalo.github.com.git
git push origin source
#Creating an empty branch that has no connection to octopress
#Master will hold the octopress output
git symbolic-ref HEAD refs/heads/master
rm .git/index
git clean -fdx
touch index.html
git add index.html
git commit -m "initial master"
git push origin master
git checkout source
#Octopress setup guide says to do this
rvm rvmrc trust
rvm reload
#Warning: On Mac OS X lion I had no bundle command. Google will help
bundle install
rake install
git add .
git commit -m "Installed Octopress theme"
git push
git clone git@github.com:trashhalo/trashhalo.github.com.git _deploy
cd _deploy
git checkout -b master remotes/origin/master
cd ..
rake config_deploy[master]
rake deploy
#Update primary branch in github repository admin to "master"
rake generate
rake deploy
git add .
git commit -m "Rake file modified"
git push origin source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment