How do I view the list of commits that haven't been pushed yet?

1.3k views Asked by At

I like documenting minor changes as separate commits and finally use git interactive --rebase to combine commits and change commit messages like I deem appropriate.

Is there a way to determine which commits I haven't pushed yet without manually checking Github i.e. is there a way to find out from the shell?

1

There are 1 answers

0
David Deutsch On BEST ANSWER

If you do a git log origin/master..HEAD, it should show you all the commits that have not been pushed (assuming you are on master, of course).