Git: Compare All Local Commits to Remote Repo Version

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

    The simplest and certainly easiest to remember command that (usually) does what you want is this:

    git diff origin
    

    This shows the diff between what you originally pulled (the origin) and the current branch you're working on, which defaults to master.

提交回复
热议问题