How to see locally committed messages, but not pushed into git

This question already has an answer here:

  • Viewing Unpushed Git Commits 24 answers

  • You can use a form of git-log to show the difference between two branches:

    git log origin/master..master
    

    More information about different forms of git-log .

    Even better (expanding on @PetSerAL's comment) you could create a handy alias to see the same information with:

     git config --global alias.justLocal "log @@{u}.."
    

    So, whenever you wanted to see the results:

    git justLocal
    
    链接地址: http://www.djcxy.com/p/31748.html

    上一篇: 如何看到我已经做出的承诺

    下一篇: 如何查看本地提交的消息,但未推入git