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.
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):
git rev-parse origin/master
(this blog post illustrates it by listing changes since last push:
git log origin/master.. --stat
The 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.