远程和本地回购之间的git diff

远程和本地回购之间的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