git diff - show only what's new on the remote

前端 未结 3 1568
自闭症患者
自闭症患者 2021-02-20 13:24

I have a local repo and a remote repo on github. For business reasons, they aren\'t in sync. I\'ve done a lot of work on the local that I\'m keeping, and now I\'m manually add

3条回答
  •  不要未来只要你来
    2021-02-20 14:23

    Try looking at git help rev-list. The option you are probably looking for is --right-only, so maybe this gets you what you want:

    git diff --color --right-only master..origin/master
    

提交回复
热议问题