Eclipse+github Commit code Error-"Rejected-non-fast-forward"

Source: Internet
Author: User

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"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.