Using git or some other SCCS to store M queries (NOT a data source)
Power Query M queries are code and can benefit from a source code control system like Git for:
It would be great if you could hit a button and either import or export a query to git or svn and whatever is the Visual Studio equivalent
Mary Garcia Charumilind commented
Possible solution in this idea https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/36978934-built-in-git-support-in-powerbi-desktop
Jay Killeen commented
Is version control important? You don't see it in VBA, you don't see it in Power Query Formula Language. Corrupted workbooks mustn't be an issue for many people.
Stanislaw Swierc commented
M scripts are just part of the solution. With template *.pbit files the schema is stored as a json document in the package. It would be great if we could export/import the schema as well so that we get all the benefits of a version control system for complete template.