0

In netbeans, while pushing the project at remote(Git), I am getting the error 'push would result in a non fast forward-update'

Gagan Bansal
  • 323
  • 3
  • 12
  • Have you Googled for that error? Git has been around for a long time; certainly you are not the first person to ever encounter this problem. – Jonathon Reinhart Nov 30 '14 at 07:22

1 Answers1

1

Don't forget to update first your Netbeans: bug 238398 shows that, starting NB8+, the error message is more explicit (revision 2a7a1c67f8ea):

Instead of

Push would result in a non fast-forward update.
Open output to see more information.

It now says:

Remote repository contains commits unmerged into the local branch.\n"
Do you want to pull the remote changes first?

That will help you trigger a git pull (as suggested here), needed before attempting a push again.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250