gpt4 book ai didi

git mergetool 报告 "No files need merging"

转载 作者:IT王子 更新时间:2023-10-29 00:53:06 28 4
gpt4 key购买 nike

最近出于某种原因,每次我 pull 并遇到 merge 冲突时,运行 git mergetool 都会报告“没有文件需要 merge ”:

$ git pull
First, rewinding head to replay your work on top of it...
Applying: replaced home button with Cancel
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
error: Your local changes to the following files would be overwritten by merge:
Classes/Controllers/HomeController.m
Please, commit your changes or stash them before you can merge.
Aborting
Failed to merge in the changes.
Patch failed at 0002 moved rollback into cancel button in log watching

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To check out the original branch and stop rebasing run "git rebase --abort".

$ git mergetool
No files need merging

如果我运行 git rebase --abort 并再次 pull ,要么相同的事情发生在不同的冲突上,要么 pull 成功而没有 merge 冲突。这些 pull 之间没有远程变化,因此冲突似乎并没有消失。

这里是这个分支和远程的配置方式:

[branch "develop"]
remote = origin
merge = refs/heads/develop
rebase = true
[remote "origin"]
url = <my repo url>
fetch = +refs/heads/*:refs/remotes/origin/*

最佳答案

这为我修复了它:
git mergetool.

我找到了这个修复 here

关于git mergetool 报告 "No files need merging",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7854611/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com