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"