Git: Compare All Local Commits to Remote Repo Version

后端 未结 6 806
礼貌的吻别
礼貌的吻别 2020-12-14 06:40

I\'m somewhat new to Git and what I\'m trying to do seems like it should be possible. Basically I\'ve been working off of clone of a repo and have made quite a few local com

6条回答
  •  不知归路
    2020-12-14 06:55

    There are three ways ( two others from other answers given here )

    1) git diff origin/master master
    2) git diff origin/master..master
    3) git diff origin/master...master
    

    First one and second one are same and show changes between the tips of the master and remote master.

    Third one shows changes that occurred on the master since branch last push and I think this is the most appropriate one you are looking for

提交回复
热议问题