title: How can I detect that my Git pull request squashed and rebased on top and what should I do locally?
body: <p>In order to keep clean linear history upstream may decide to squash pull request and rebase it on top of the history.</p>
  
  <p>In that case revision hash of resulted change would differ from revisions of my personal efforts.</p>
  
  <p>How can I detect that my changes integrated into upstream with only <code>git</code> command without any external hooks (like sending email on rebase/squash to original author) or manual reviewing new patches via <code>git log -p</code>, etc?</p>
  
  <p>Because rebase/squash are destructive commands after detecting inclusion of my contribution to upstream I should remove my original efforts because it is unrelated to upstream history after history rewriting. How can I do that in my local repository?</p>