“Git-getpull: Quickly find the pull request that merged your commit to master” by Andrew Warner on News Genius
  
  
  Ideally git blame would give you all the context you need to determine why some code was written. But the reality is that no team is perfectly disciplined, and sometimes you’re going to run across commits with cryptic or ambiguous messages (“bugfix,” anyone?).