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?
高洛峰2017-05-02 09:38:20
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
.
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 docx2txt
、textract
和antiword
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.
仅有的幸福2017-05-02 09:38:20
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