Can Git back a REST API? (Part 1 - the naive approach)

Git is basically a fancy file store with history, so can it be applied to use cases other than source control? Come with me as I try to repurpose Git into a backing store for a simple REST API