Example:
To get the version of index.html from before the last four commits, use
git show HEAD~4:index.html
Recursive algorithms can be slow because they end up solving the same little problems over and over again. To speed them up, you can use a technique called "memoization." Memoization allows algorithms go much more quickly by remembering solutions to problems they have already solved. I’m the recursive algorithm. This blog is my memoization.
git show HEAD~4:index.html