A blog post about git internals. Shows how to do a git commit
manually (with a bit of Python code), without relying on git's own CLI. More focused than What is in that .git directory?, which speaks about more steps.