ssledz blog

Everything should be made as simple as possible, but no simpler.

Octopress Pushing Error to GitHub

When You get something like that

1
2
3
4
5
6
7
8
## Pushing generated _deploy website
To git@github.com:ssledz/ssledz.github.io.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:ssledz/ssledz.github.io.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

just do following

1
2
3
cd _deploy
git reset --hard origin/master
cd ..

and try again

1
2
rake generate
rake deploy

Comments