当我在 Git Hub 上调用 pull 请求时,我有 2 个分支显示不兼容。有没有办法在 merge 分支之前比较冲突的位置?
最佳答案
尝试
前往您的分行,
git format-patch $(git merge-base HEAD otherBranch)..otherBranch --stdout | git apply --check -
otherBranch -> 您要比较的分支的名称。
关于 merge 2 个分支之前进行 Git 比较,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40013244/