I think this is absolutely the way forward for technical courses (where the prof and maybe students already know how to use git, or can be expected to learn).
A course is kind of like a web app with a lot of common functionality. Too bad most LMSs seem to think we want to write our course in a little text box with no version control (even newer ones like Canvas make this assumption).