Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

git-bash

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?

like image 468
Srini Avatar asked Jun 23 '15 12:06

Srini


1 Answers

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).

like image 77
David Deutsch Avatar answered Oct 02 '22 04:10

David Deutsch