djechlin
djechlin

Reputation: 60748

Why can git push fail non-fast forward following git pull?

I got this error and now I'm scared.

$ git pull
Already up-to-date.
$ git push
To [email protected]:Unroll-Me/unrollme_thumbnail_generator.git
 ! [rejected]        master -> master (non-fast-forward)

Upvotes: 0

Views: 195

Answers (1)

Pablo Fernandez heelhook
Pablo Fernandez heelhook

Reputation: 12503

Perhaps you are not on branch master? git pull only merges the current branch.

Try

git checkout master
git pull origin master
git push

Upvotes: 3

Related Questions