On Linux, Fuse is your friend. See eg https://github.com/matthiasgoergens/git-snap-fs