Eclipse Push has a rejected-non-fast-forward error when push to the server sometimes Rejected-non-fast-forward error occurs because of a remote change, You need to merge the remote changes into the ground before committing.
Error Reason : file conflict, local code and the number of files in remote repository is inconsistent (that is, there are files in the remote repository that do not exist in the local project) or the local project is not modified on the basis of Remote repository code.
Workaround:
Code submission can be done by updating the code in the remote repository to local and then push.
--------------------------------------------------------------------------------------------------------------- -------------------------------
Here's the solution:1> open Git repositories, in working Directory make sure you see the project you want to submit 2> you can see the remote branch in remotes, the green arrow icon to the left in the branch represents fetch, right-click-&G T Configure fetch 3> Confirm that the URI and Ref mappings are correct, click Save and Fetch, then you can see the fetch Results branch together, click OK 4> at this time in Branches should be able to To see that remote Tracking exists in the Local master in the remote branch 5> right Branches, select Merge 6, select Origin/master in remote Tracking, click Merge 7, This is the result of the combined feedback, and then you can resubmit the code.
Eclipse+github Commit code Error-"Rejected-non-fast-forward"