Icon_search

Git Error "failed to push some refs"

Posted on 05/06/2009 by Travis
 | 

If you're trying to push a git repo to GitHub and run into the following error:

! [rejected] master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:me/project_name.git'

There's an easy fix! Just run:

git pull origin master

And you should be good to go!

Tagged:  git