I’d like to get the ID for the last push received (not git rev-parse HEAD).
For example, if I do git diff-tree --name-status master it will show me all changes since the last push, but I want to see changes at a specific push.
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.
If you are talking about the last push that you (ie your repo) received from a given remote, for a given branch (like, for instance, master):
(this blog post illustrates it by listing changes since last push:
git log origin/master.. --statThe command is also used in the question “git erroneously states I’m ahead of origin/master by 1 commit“)
Once you have the right SHA1, you can look at “How can I see all the files that were modified/added/removed in the last push received?” for more.