How to use git for version control of word documents?
PHPz
PHPz 2017-05-02 09:36:20
0
2
1433

Version control in word, such as revision functions, can only operate within one file. . Can't be in two files.

Git cannot operate on binary files by default. Is there any way to use git for version control of word documents?

PHPz
PHPz

学习是最好的投资!

reply all(2)
小葫芦
  1. Git supports binary file operations by default, but as a version control tool developed for plain text, the effect is not satisfactory. Among them, I think the main shortcoming is that the specific changes in rich text documents cannot be displayed in git diff.

  2. To solve this problem, Git allows you to configure some external tools to display modifications to binary files. Most of these tools can only display text modifications in Word documents, but they can basically meet my requirements.

  • If you are a command line user, you may wish to refer to the relevant content in Pro Git and this article, and use tools such as docx2txttextractantiword to assist Git in identifying the content of Word documents.

  • If you prefer GUI, Git can directly call third-party file comparison software through git difftool(document), many of which can compare Word documents, such as Beyond Compare, which I use myself.

仅有的幸福

There is a version, but I can’t track the specific changes. If you have to track the document version, I recommend you try the tool Graphite https://www.shimo.im

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template