Eclipse Commit code Error: Rejected–non-fast-forward

Source: Internet
Author: User
Tags using git

The following error occurred when uploading a project using Git in Eclipse today:


By looking at the data, it was found that there was a conflict between files in the local and remote repository, a re-examination of the file, and the discovery that the ReadMe.txt file was added when the repository was established, resulting in inconsistencies with the local project branch.

error :rejected–non-fast-forward

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.

Eclipse 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.