git diff between remote and local repo

后端 未结 4 1330
清歌不尽
清歌不尽 2020-12-07 10:56

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

4条回答
  •  清歌不尽
    2020-12-07 11:51

    Don't do a pull :

    • 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

提交回复
热议问题