Skip to content
Tags

,

Git : failed to push some refs

March 22, 2010

I got some problem today when I tried to git push origin master , here is the error message

jqyao@jqyao-x61t:~/dev/git-yaominator/makefile$ git push origin master
To git@github.com:yaominator/yaominator.git
! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to ‘git@github.com:yaominator/yaominator.git’

I searched on Internet and found out that you only need to run git pull again, then you are fine from then on.

jqyao@jqyao-x61t:~/dev/git-yaominator/makefile$ git pull

remote: Counting objects: 7, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 4 (delta 1), reused 0 (delta 0)

Unpacking objects: 100% (4/4), done.

From git@github.com:yaominator/yaominator

f874c59..375f09e  master     -> origin/master

Merge made by recursive.

blogs/php-apc |   36 ++++++++++++++++++++++++++++++++++++

1 files changed, 36 insertions(+), 0 deletions(-)

jqyao@jqyao-x61t:~/dev/git-yaominator/makefile$ git push origin master

Counting objects: 23, done.

Delta compression using up to 2 threads.

Compressing objects: 100% (17/17), done.

Writing objects: 100% (19/19), 2.61 KiB, done.

Total 19 (delta 3), reused 1 (delta 0)

To git@github.com:yaominator/yaominator.git

375f09e..98b56d3  master -> master

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: