Regarding:
"You could even just use real git to serve the repo over https and add the CORS headers yourself"Would that be possible with using jsgit to serve a repo?
Is it possible to "npm install jsgit", then "require('jsgit')" and have my server listen on a specific port in order to serve a repo and receive updates from a browser?
In other words:
(probably the analogy is lacking, but instead of configuring and using some http server, node can be used to build a custom one)
would it be possible to use jsgit to build my "custom git" which includes maybe some auth mechanism and an easy way to manage git hooks? maybe jsgit could be used to build a custom "version control" system?
(maybe that is not desirable - but if there are reasons for that, i would be interested to learn about them)
Otherwise, i can say, that solving the above, would be a very very interesting project that i would like to see happen and i would like to try to help if i can.
BUT: for now, i feel all this is a bit beyond my current skill level. From what you said above, i cannot comprehend how much effort it would be to make progress in this area nor do see if i would be able to learn and program it for real.
It would probably need a lot of guidance, ...kind of step by step instructions and how those steps relate to each other (the big picture).
...it's only afterwards, that i will be able to see if it would be possible for me to program that at all :-)