git如何支持doc文档
这个问题很容易解决,只要添加一个 .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
最新文章
- 安天AVL联合小米MIUI首擒顽固病毒“不死鸟”
- 浅谈JavaScript eval() 函数
- Xcode中创建文件夹
- Codeforces Round #379 (Div. 2) F. Anton and School
- NTFS 权限讲解 ACL
- Android实现归属地查询功能
- 1. 初探MongoDB —— 介绍、安装和配置
- 【Unity】13.2 通过Lighting Window设置相关参数
- PHP 魔术方法 __get __set (二)
- 关于Eclipse的常用快捷键
- 297 - Quadtrees (UVa)
- nginx的请求接收流程(一)
- 第一章 开发简单Java应用程序
- centos 挂载ntfs格式的移动硬盘
- Unity 5.X扩展编辑器之打包assetbundle
- 基数排序-LSD
- linux 之 汇编语言 的mov和movl sub 和subl add 和addl 的区别??
- 酷派大神F2使用QPST进行nv备份恢复,解决无信号问题
- LeetCode之二叉树作题java
- bzoj4754[JSOI2016]独特的树叶
热门文章
- 洛谷 P5408 【模板】第一类斯特林数·行
- 在UE4C++中的宏
- 第10组 Alpha冲刺(2/4)
- 【Gamma阶段】第三次Scrum Meeting
- setns 切换命名空间,/proc 目录与 Namespace
- ubuntu17.10 源
- 深入SaltStack
- sql server数据库备份单个表的结构和数据生成脚本【转】
- 检查 chrome 插件是否存在
- 均值为1的独立指数随机Y1,Y2,组合成的Y=Y1-(Y2-1)^2/2 在Y>;0的条件下也是指数随机变量