Workarounds for Git rebase, pull, and push cannot merge after conflict

Source: Internet
Author: User
Tags git mergetool

We often encounter conflicts when we use Git rebase, pull, and push, and this is when we go to merge:

$ git rebase Master

A conflict occurred:

$ git mergetool-t opendiff

Then use Opendiff to manually merge the conflicting places.


However, today I met the situation that cannot merge, the problem is as follows:

$ git mergetool-t opendiff
$ No files need merging

Tip I do not need to merging files, Google found the solution, generally there are two kinds:


The first type:

$git Config--global core.trustctime false

The explanation of the above statement is:

If false, the CTime differences between the index and the working copy are ignored; Useful when the inode was regularly modified by something outside Git (file system crawlers and some backup sys tems). And Core.trustctime are true by default.

So, directly set to false, nothing serious, as long as the content of the code is consistent there is no problem.


The second type:

$git rebase--skip

You can skip directly, because no files need to be merging, stating that the conflict is not on the contents of the file.


Problem solving.

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.