Git can help you uncover the history of a code snippet.

Read more at the source