Git: Compare All Local Commits to Remote Repo Version

后端 未结 6 801
礼貌的吻别
礼貌的吻别 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:43

    the difference can be viewed with git diff A B, it will compare the code in A to B:

    git diff origin/master master
    

    origin/master is the state of the remote master branch when you last fetched (or cloned) from it, master is the local state of the code – unless you switched branches when working locally.

提交回复
热议问题