In netbeans, while pushing the project at remote(Git), I am getting the error 'push would result in a non fast forward-update'
Asked
Active
Viewed 555 times
0
-
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 Answers
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.