Is there a way to get the last local Git commit that I also pushed on upstream?
To explain a little more: I would like the last local commit that was also pushed on upstream, not to be confused by the last upstream commit which is not always also local(because you can bring upstream commits using git fetch and the fetched commits are not local anymore).
I understand that one could make an algorithm that looks over the upstream commits and over the local commits, does some comparisons and determine which was the last local commit i.e. that appears when git loging and is also present in upstream but a git command that gives this information would be very handy.