C
C
Cuthbert Allgood2016-03-19 22:21:39
git
Cuthbert Allgood, 2016-03-19 22:21:39

How to track .docx files in git on Bitbucket?

Good afternoon. I would like to know if it is possible to somehow track .docx files in git on Bitbucket?
In git itself, I see commit diffs. But on Bitbucket, nothing is displayed in the commit history, only "Binary file added.".
Can this be fixed somehow?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
enGuardian, 2016-04-06
@enGuardian

Git does not track changes to binary files, and docx, like odt, is a zip archive.
I have a similar problem now and today I dug up about the flat xml format. This is a document in the same format as odt, but in one file and uncompressed. Libreoffis eats with pleasure. His git will track, but, of course, in a raw format - it will not be very convenient to watch diffs. And small-soft ones do not support this.

R
Roman Mirilaczvili, 2017-01-21
@2ord

Locally, you can use the utilities:
https://github.com/costerwi/rezip
https://github.com/costerwi/zipdoc
https://www.mercurial-scm.org/wiki/ZipdocExtension

Encode/decode filter for version controlling zipped document formats like docx or odt as uncompressed zip archives.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question