这个问题很容易解决,只要添加一个 .gitattributes

内容如下:

/////////////////////////////////////////////////////////////////////////

# Auto detect text files and perform LF normalization

* text=auto

# Custom for Visual Studio

*.cs     diff=csharp

*.sln    merge=union

*.csproj merge=union

*.vbproj merge=union

*.fsproj merge=union

*.dbproj merge=union

# Standard to msysgit

*.doc diff=astextplain

*.DOC diff=astextplain

*.docx diff=astextplain

*.DOCX diff=astextplain

*.dot  diff=astextplain

*.DOT  diff=astextplain

*.pdf  diff=astextplain

*.PDF diff=astextplain

*.rtf diff=astextplain

*.RTF diff=astextplain

////////////////////////////////////////////////////////////////

git 完全支持 docx 文件的差异对比,因为 git 内部也是使用了 zlib,docx 本质上是 zip 文件,比较差异还是很容易的。

http://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes

最新文章

  1. 安天AVL联合小米MIUI首擒顽固病毒“不死鸟”
  2. 浅谈JavaScript eval() 函数
  3. Xcode中创建文件夹
  4. Codeforces Round #379 (Div. 2) F. Anton and School
  5. NTFS 权限讲解 ACL
  6. Android实现归属地查询功能
  7. 1. 初探MongoDB —— 介绍、安装和配置
  8. 【Unity】13.2 通过Lighting Window设置相关参数
  9. PHP 魔术方法 __get __set (二)
  10. 关于Eclipse的常用快捷键
  11. 297 - Quadtrees (UVa)
  12. nginx的请求接收流程(一)
  13. 第一章 开发简单Java应用程序
  14. centos 挂载ntfs格式的移动硬盘
  15. Unity 5.X扩展编辑器之打包assetbundle
  16. 基数排序-LSD
  17. linux 之 汇编语言 的mov和movl sub 和subl add 和addl 的区别??
  18. 酷派大神F2使用QPST进行nv备份恢复,解决无信号问题
  19. LeetCode之二叉树作题java
  20. bzoj4754[JSOI2016]独特的树叶

热门文章

  1. 洛谷 P5408 【模板】第一类斯特林数·行
  2. 在UE4C++中的宏
  3. 第10组 Alpha冲刺(2/4)
  4. 【Gamma阶段】第三次Scrum Meeting
  5. setns 切换命名空间,/proc 目录与 Namespace
  6. ubuntu17.10 源
  7. 深入SaltStack
  8. sql server数据库备份单个表的结构和数据生成脚本【转】
  9. 检查 chrome 插件是否存在
  10. 均值为1的独立指数随机Y1,Y2,组合成的Y=Y1-(Y2-1)^2/2 在Y>0的条件下也是指数随机变量