# Git : changes to my local repository but not pushed upstream

**URL:** <https://www.ruby-forum.com/t/git-changes-to-my-local-repository-but-not-pushed-upstream/140629>\
**Category:** Rails\
**Created:** [June 16, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/git-changes-to-my-local-repository-but-not-pushed-upstream/140629 "2008-06-16T22:48:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [June 16, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/git-changes-to-my-local-repository-but-not-pushed-upstream/140629/1 "2008-06-16T22:48:42Z")

</div>

This is a git question.

I have a private github repository for an application.

After a couple of hours of work and a few commits I want to know what  
all commits have not been pushed to the github server.

When I execute git cherry -v origin I get following error.  
fatal: Unknown commit origin

However when I execute git push origin all the pending commits gets  
pushed.

Anyone knows how to get the list of commits which are local but not  
pushed upstream.
