git - 在 merge.renameLimit 警告加上冲突后撤消 git merge

标签 git version-control git-merge

我正在尝试将开发分支 merge 到主分支中。

stefanos-imac:trunk borini$ git merge --squash devel
CONFLICT (content): Merge conflict in test1
warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your merge.renamelimit variable to at least 2224 and retry the command.
Squash commit -- not updating HEAD
Automatic merge failed; fix conflicts and then commit the result.

很公平。

stefanos-imac:trunk borini$ git config merge.renameLimit 999999

然后我尝试撤消 merge 并用更高的限制重做

stefanos-imac:trunk borini$ git merge --abort
fatal: There is no merge to abort (MERGE_HEAD missing).

好吧,也许我必须按照它说的去做,重新调用 merge 命令

stefanos-imac:trunk borini$ git merge --squash devel
fatal: 'merge' is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>' as
appropriate to mark resolution and make a commit, or use 'git commit -a'.

哦, SCSS ,你怎么这么 SCSS ?

更重要的是,有谁知道如何摆脱这种情况?

最佳答案

Em,git reset --hard origin/master?

关于git - 在 merge.renameLimit 警告加上冲突后撤消 git merge,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10737966/

相关文章:

git - TFS 中是否有相当于 Cloak 的 git 版本?

git - 以编程方式打印 git 修订版并检查未提交的更改

version-control - Perforce 中的 'revert unchanged files' 是什么意思?

go - 提交 Gopkg.lock 文件是否安全?

git - 我可以与它的前辈之一压缩 merge 提交吗?

git - 正确使用git

git - 将分支移动到另一个分支

version-control - 在 CVS 中移动文件而不重置修订号

gitlab - 生成在两个标签之间合并的所有合并请求的列表,所有信息都在 csv 文件中

Git rebase 功能分支在向开发/主分支的 pull 请求中弄乱了提交