Looking at this rewrite I was wondering, but didn't find an answer in the project README: would emscripten successfully compile Git to js/wasm?
There’s probably other dependencies (ssh, http, an editor for commits) that need to be resolved to get expected functionality.