IMO Git is not an unassailable juggernaut - I think if a new SCM came along and it had a frontend like GitHub and a VSCode plugin, that alone would be enough for a many users to adopt it (barring users who are heavy customers of GitHub Actions). It's just that nobody has decided to do this, since there's no money in it and most people are fine with Git.
Curious what the author thinks though, looks like it's posted by them.
One way to do it is to use the new system for the messy part and git/GitHub for "publication".
It shouldn't be hard to build a bijective mapping between a file system and AST.
The cli really isn't the greatest either way. But there's lots of infrastructure to make the sharing work reasonably well.