Using Git how do I find changes between local and remote

前端 未结 11 1285
感情败类
感情败类 2020-11-29 15:16

Here are two different questions but I think they are related.

  1. When using Git, how do I find which changes I have committed locally, but haven\'t yet pushed

11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 15:40

    git incoming

    $ git fetch && git log ..origin/master --stat
    OR
    $ git fetch && git log ..origin/master --patch
    

    git outgoing

    $ git fetch && git log origin/master.. --stat
    OR
    $ git fetch && git log origin/master.. --patch
    

提交回复
热议问题