jakeasaur.us

Git Commits To Push

Published Tuesday, May 12 at 01:10 GMT

If your local branch is ahead of a remote branch Git can quickly tell you which commits differ between the two.

              git log master ^origin/master  
              

And there you have it, your pending commits waiting to be pushed.

Googled from coderrr.