如何使用git对word文档进行版本控制?
PHPz
PHPz 2017-05-02 09:36:20
0
2
1333

word中的版本控制,例如修订功能只能在一个文件内操作。。没法在两个文件中。

git默认不能对二进制文件操作,请问有没有办法用git进行word文档的版本控制?

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!