如何在Git中手动合并所有文件? [英] How to merge all files manually in Git?

查看:674
本文介绍了如何在Git中手动合并所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Meld或任何其他差异工具手动合并所有文件,如何使用Git做到这一点?
当我运行git mergetool 它说no files need merging.所以我想只有在有冲突的情况下我才能做到.

I want to merge all files manually with meld or any other diff tool, how can I do this with Git?
When I run git mergetool it says no files need merging. So I suppose I can do it only if I have conflicts.

推荐答案

有更简单的方法:

git merge --no-commit merge_branch

正如男人所说:

使用 --no-commit 执行合并,但假装合并失败并执行 不自动提交,使用户有机会检查并进一步调整 之前的合并结果 提交.

With --no-commit perform the merge but pretend the merge failed and do not autocommit, to give the user a chance to inspect and further tweak the merge result before committing.

这篇关于如何在Git中手动合并所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆