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.
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
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.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