Skip to content

Instantly share code, notes, and snippets.

@pcanterini
Last active March 4, 2017 01:43
Show Gist options
  • Save pcanterini/6481229 to your computer and use it in GitHub Desktop.
Save pcanterini/6481229 to your computer and use it in GitHub Desktop.
fix for octopress deploy - rake deploy is rejected
git clone https://github.com/username/username.github.io.git
git checkout source
Then we need to setup the deploy directory.
mkdir _deploy
cd _deploy
git init
git remote add -t master -f origin https://github.com/username/username.github.io.git
Done! Now we can make changes in source branch and use rake gen_deploy as usual.
if using zsh:
alias rake="noglob rake"
@argshook
Copy link

Perfect, just what I was looking for, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment