Ask HN: “Git” for Microsoft Office?
11–20 of 149 posts
Re: Ask HN: “Git” for Microsoft Office?
#12Second point, I haven't tested this, but docx, xlsx etc are XML based and may be happily Git compatible.
Third point, if the above doesn't work, look into automatically saving / converting documents into and out of a Git compatible format with minimal loss of formatting etc. You may be able to convince your team that this is an acceptable compromise between the tools they are used to, and the power of DVCS.
Re: Ask HN: “Git” for Microsoft Office?
#13A couple years back I built this: https://github.com/tomashubelbauer/modern-office-git-diff
It is a pre-commit script which unpacks Office XML into text contents and tracks that alongside the source file. This way you can consider the binary to be a source of truth, but with each commit you also get a textual diff showing what changed content-wise. More or less.
Some person built the same thing for OpenOffice and I link their project in my readme, too.
Re: Ask HN: “Git” for Microsoft Office?
#14O365 has had live editing for a while now[1], it's not even that hard to use. You can have that Golden Version and everyone can suggest changes and edits, then the document owner can accept or decline the edits. [1]: https://support.office.com/en-us/article/Collaborate-on-Word...
Re: Ask HN: “Git” for Microsoft Office?
#15I assume you’re not using the online version of Office 365. It’s collaboration capabilities are better than most people give it credit for.
Re: Ask HN: “Git” for Microsoft Office?
#16.docx is plain text xml though (You can even save explicitly as .xml which has all the images in base64). Is track changes not good enough?
(2) What happens when someone checks in a hand-reconciled merge that is not a valid XML file, because whoops?
Re: Ask HN: “Git” for Microsoft Office?
#17Given how shitty MS software has always been, I can't believe people not only pay money for it but also accept it as the norm.
As for your question, non-geeks have been coping with this by saving a copy of a document before each edit so that when the inevitable catastrophe occurs, they can roll back. As a geek, you can use git manually. Adding that as a feature to Office would make it even more incompatible with itself than it already is.
Re: Ask HN: “Git” for Microsoft Office?
#18Re: Ask HN: “Git” for Microsoft Office?
#19Technically, tracked changes and SharePoint. But in practice, you’d rather send the changes to the project owner via carrier pigeon. I’ve looked into what it would take to make a git style system for docx (since it’s just zipped XML, right :D), and the file format was a nightmare whenever an edit was made. Someone smart should take a look at it, as there would be a massive market for a DVCS for Office files. Imagine…
Re: Ask HN: “Git” for Microsoft Office?
#20First point. MS office documents have a vaguely capable version control system built in. It's not Git, but it may be enough. Second point, I haven't tested this, but docx, xlsx etc are XML based and may be happily Git compatible. Third point, if the above doesn't work, look into automatically saving / converting documents into and out of a Git compatible format with minimal loss of formatting etc. You may be able to…
Which make a version control pretty much impossible.