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?
This question is related to
git
how to determine if a commit with particular hash have been pushed to the origin already?
# list remote branches that contain $commit
git branch -r --contains $commit
Source: Stackoverflow.com