Apple's Time Machine keeps daily (or more frequent within a given day) snap shots of all of your folders.[1]
Also, in any native OSX app each "save" works like a git commit, you can browse all "versions." [2]
Combined, these native OSX features do exactly what you want.