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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
git log origin/master..masteror, 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>