Preview a git push

Posted by Saverio Miroddi on Stack Overflow See other posts from Stack Overflow or by Saverio Miroddi
Published on 2010-02-01T11:25:38Z Indexed on 2010/05/14 0:34 UTC
Read the original article Hit count: 441

Filed under:
|
|

How can I see which commits are actually going to be pushed to a remote repository?

As far as I know, whenever I pull master from the remote repository, commits are likely to be generated, even if they're empty.

This causes the local master to be 'forward' even if there is really nothing to push.

Now, if I try (from master):

git cherry origin master

I have an idea of what's going to be pushed, though this also display some commits that I've already pushed. Is there a way to display only the new content that's going to be pushed?

© Stack Overflow or respective owner

Related posts about git

Related posts about push