We often encounter conflicts when using git rebase, pull, and push. At this time, we will go to merge:
$ git rebase master
Conflict:
$ git mergetool -t opendiff
Then, use opendiff to manually merge the conflicting location.
However, today I met a situation where merge is not available. The problem is as follows:
$ git mergetool -t opendiff
$ no files need merging
I am prompted that merging is not required for files. I found the solution on Google. There are generally two solutions:
First:
$git config --global core.trustctime false
The preceding statement is as follows:
If false, the ctime differences between the index and the working copy are ignored; useful when the inode change time is regularly modified by something outside git (File System crawlers and some backup systems ). and core. trustctime is true by default.
Therefore, setting it directly to false is not a problem, as long as the content of the Code is consistent.
Second:
$git rebase --skip
You can directly Skip, because no file requires merging, indicating that the conflict is not in the file content.
Solve the problem.