finding deleted content using git logs

I write my notes in markdown and keep it version-controlled using git . And this week I needed a note I knew I had some years ago, but I couldn't find it. It drove me nuts, but then I remembered this is exactly why I use git for my notes! So, if you're like me, and have accidentally deleted something - either it be a whole file or parts of a file - and want to recover it, you can use git to search…