How do I get the id of the last push in git?
1 answer
If you are talking about the last push you (i.e. your repo) received from a given remote, for a given branch (e.g. master):
git rev-parse origin/master
(this blog post illustrates it by listing the changes since the last click:git log origin/master.. --stat
The command is also used in the question " git wrongly states that I am ahead of start / master by 1 commit )
Once you have the correct SHA1, you can look at " How can I see all the files that were changed / added / removed in the received last pushed? " For more.
+4
source to share