List Git commits not pushed to the origin yet
 Possible Duplicate:  
 Viewing Unpushed Git Commits  
How do I list all commits which have not been pushed to the origin yet?
Alternatively, how to determine if a commit with particular hash have been pushed to the origin already?
 git log origin/master..master 
or, more generally:
 git log <since>..<until> 
You can use this with grep to check for a specific, known commit:
 git log <since>..<until> | grep <commit-hash> 
Or you can also use git-rev-list to search for a specific commit:
 git rev-list origin/master | grep <commit-hash> 
如何确定具有特定散列的提交是否已经被推送到原点?
# list remote branches that contain $commit
git branch -r --contains $commit
I have found a cool script which among other useful stuff, displays information about unpushed commits:
git-wtf
链接地址: http://www.djcxy.com/p/31746.html上一篇: 如何查看本地提交的消息,但未推入git
下一篇: 列表Git提交没有推送到原点
