博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git compare for docx file
阅读量:6517 次
发布时间:2019-06-24

本文共 870 字,大约阅读时间需要 2 分钟。

hot3.png

This section was inspired by Martin Fenner's .

To configure git diff:

  1. .

  2. Tell git how to handle diffs of .docx files.

    1. Create or edit file ~/.gitconfig (linux, Mac) or "c:\Documents and Settings\user.gitconfig" (Windows) to add

      [diff "pandoc"]   textconv=pandoc --to=markdown   prompt = false [alias]   wdiff = diff --word-diff=color --unified=1
    2. In your paper directory, create or edit file .gitattributes (linux, Windows and Mac) to add

      *.docx diff=pandoc
    3. You can commit .gitattributes so that it stays with your paper for use in other computers, but you'll need to edit ~/.gitconfig in every new computer you want to use.

Now you can see a pretty coloured diff with the changes you have made to your .docx file since the last commit

git wdiff file.docx

To see all changes over time

git log -p --word-diff=color file.docx

转载于:https://my.oschina.net/u/2308739/blog/1802970

你可能感兴趣的文章
关于connect: network is unreachable 问题的解决【转】
查看>>
RxSwift源码与模式分析一:基本类
查看>>
.NET MVC5+ Dapper+扩展+微软Unity依赖注入实例
查看>>
IntelliJ IDEA 快捷键整理-from imooc
查看>>
INSTALL_FAILED_USER_RESTRICTED
查看>>
spring的@Transactional注解详细用法
查看>>
git如何合并远程2个分支
查看>>
Identity Server 4 - Hybrid Flow - Claims
查看>>
CSS3 nth 伪类选择器
查看>>
PHP版本VC6与VC9/VC11/VC14、Thread Safe与None-Thread Safe等的区别
查看>>
类的静态成员变量
查看>>
完整部署CentOS7.2+OpenStack+kvm 云平台环境(5)--问题解决
查看>>
Linq------各种查询语句大全
查看>>
PHP 源码学习之线程安全
查看>>
strstr strchr strrchr strrstr
查看>>
Handler.dispatchMessage handleMessage
查看>>
JVM(3)对象A和B循环引用,最后会不会不被GC回收?-------关于Java的GC机制
查看>>
CAS(Central Authentication Service)——windows上简单搭建及測试
查看>>
layui中折叠面板的使用
查看>>
等差数列与等比数列
查看>>