Ask HN: “Git” for Microsoft Office?
21–30 of 149 posts
Re: Ask HN: “Git” for Microsoft Office?
#22Re: Ask HN: “Git” for Microsoft Office?
#23First 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…
Docx & co are XML based, but they are _zipped_, therefore binary. Which make a version control pretty much impossible.
Re: Ask HN: “Git” for Microsoft Office?
#24First 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…
Docx & co are XML based, but they are _zipped_, therefore binary. Which make a version control pretty much impossible.
Re: Ask HN: “Git” for Microsoft Office?
#25O365 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?
#26This might not be exactly what you're asking for but I'll just leave it here in case someone finds it useful: A 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…
Thanks!
Re: Ask HN: “Git” for Microsoft Office?
#27Re: Ask HN: “Git” for Microsoft Office?
#28First 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…
Docx & co are XML based, but they are _zipped_, therefore binary. Which make a version control pretty much impossible.
Re: Ask HN: “Git” for Microsoft Office?
#29https://www.theverge.com/2020/5/19/21260005/microsoft-office...
https://support.microsoft.com/en-us/office/get-started-with-...
Re: Ask HN: “Git” for Microsoft Office?
#30This is what I did in college because (for some reason) everyone expects word files for everything.