Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created August 2, 2011 15:38
Show Gist options
  • 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 [email protected]: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 [email protected]: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