远程和本地回购之间的git diff [英] git diff between remote and local repo

查看:129
本文介绍了远程和本地回购之间的git diff的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在提交pull请求之前,试着使用GitHub repo来执行 diff 我的本地文件,这样我可以看到会显示什么,是否有准确的方法?我假设GitHub的比较工具操纵Git的 diff

Trying to diff my local file with a GitHub repo before I submit a pull request so I can see what will show up, is there an accurate way of doing this? I assume GitHub's compare tool manipulates Git's diff?

推荐答案

不要做一个


  • 做一个 fetch code>(语法与 git pull 相同,但不会自动合并)
  • 做一个 diff 在您的dest分支和其他分支之间
  • 然后执行 merge if你想
  • do a fetch (the syntax is the same as git pull, but it doesn't automatically merge)
  • do a diff between your dest branch and the other branch
  • then do a merge if you want

这篇关于远程和本地回购之间的git diff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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