Error: Entry 'xxxxxx' not uptodate. Cannot merge.

Source: Internet
Author: User
Ask: I'm trying to update my repo from a remote branch and keep getting this error when I do a "Git pull". As below, Xintan. Chen @ announce :~ /ARM/m1-kernel $ git pull
Updating 59a968e .. 5f5a4e5
Error: Entry 'drivers/amlogic/tvin/vdin. C' not uptodate. Cannot merge. answers:

There's a couple of ways to fix this but I 've found git stash works good for me. it temporary puts your local changes into another place. then you can pull, to grab the latest changes. and then you can get your local changes back.

Just like this:

$ Git pull... file your_file.rb not up to date, cannot merge. $ git stash $ git pull $ git stash pop
There is another method to fix it as below
Xintan. Chen @ announce :~ /ARM/m1-kernel $ git checkout-F head
Xintan. Chen @ announce :~ /ARM/m1-kernel $ git pull
Already up-to-date.

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.