How can I check which commits have not been pushed to origin?

前端 未结 2 1253
旧时难觅i
旧时难觅i 2021-01-30 10:33

I have made commits to my local branch (let\'s just say master) and have \'git pull\'d down changes that others have made. When I run a \'git status\', I see something like:

相关标签:
2条回答
  • 2021-01-30 11:11

    I tend to use gitk (or gitk --all) which will show this history of the branch. It also displays large friendly labels on origin/master and master (and any other tags that you have).

    A more lo tech version is git log --graph

    0 讨论(0)
  • git diff --stat origin/master
    

    will show the changed files.

    git log origin/master..master
    

    will show the commits.

    0 讨论(0)
提交回复
热议问题