Yaminikarthika N
Yaminikarthika N

Reputation: 73

We can able to view docx files using Version control system GIT?

Using an Version control system Git. I have pushed some docx files into an Git repository.

Using an GITLIST to view docx files in the browser. When i click the docx files it shows an empty.

Please provide a solution to solve this issue.

Upvotes: 0

Views: 524

Answers (1)

VonC
VonC

Reputation: 1324703

As mentioned in "Diff (and collaborate on) Microsoft Word documents using GitHub" by Ben Balter:

if you were to try to view a single commit to review what’s changed, due to Word’s black-box nature, the best you could get would likely be something like this:

http://ben.balter.com/wp-content/uploads/2015/binary-diff.png

That’s because, despite its widespread adoption, a Microsoft Word documents is, in reality, a proprietary and purpose-built legacy format, and one that that’s especially hard to use outside of Microsoft Word. And that’s the exact problem Word Diff aims to sovle.

The same would apply to gitlist.org (GitHub project klaussilveira/gitlist).

The blog post suggests converting doc word into markdown using WordDiff. That might be a workaroud to consider, depending on your case.

Upvotes: 1

Related Questions