@Patroso that has nothing to do with github but goes for all cloudservices, with only those cloudservices that support branching and versioning being usable at all, other cloudservices (those without versioning) will have a high chance of destroying your entire project on a failed sync.
That is why everyone here on the forum will tell you to never work directly in a cloudsync'ed folder, only work on local copies and manually upload them after closing the editor.
And that is nothing exclusive to MZ either, it has allways been the case for every program that uses databasing file access instead of direct file access - not only the makers (VXA, MV, MZ) but also programs like Microsoft Access, Filemaker and so on.
And those programs CANNOT use direct file saving because that would skyrocket RAM requirements and make saving require dozens of minutes for each save.