码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 介绍一款小巧的Excel比对工具-DiffExcel


    【缘起:此前找了一通,没有找到免费又好用的Excel比对工具,而ExcelBDD需要把Excel文件存放到Git,因此迫切需要Excel比对工具。

    最新升级到V1.3.3,因为git diff有变化,原来是git diff会修改文件名,现在不改了,导致老版DiffExcel失效】

    DiffExcel is an open-source and text-based tool to compare Excel, it supports Git diff.
    It looks like the below:

    Pre-Requirement

    • Microsoft Excel
    • PowerShell, which is pre-installed in Windows10 and the later

    Install

    1. Open PowerShell
    2. execute Install-Script -Name DiffExcel
      2.1 if updating, execute Update-Script -Name DiffExcel

    Direct Usage

    In PowerShell, use below syntax:
    DiffExcel OldExcelFilePath NewExcelFilePath
    e.g. DiffExcel E:\Code\ExcelBDD\DiffExcel\Test\OldFile.xlsx E:\Code\ExcelBDD\DiffExcel\Test\NewFile.xlsx

    DiffExcel OldExcelFilePath NewExcelFilePath -Open
    -Open: if Open switch is set, the new Excel file will open if any change is found.

    Config Git Diff

    Prepare a Diff bat file

    PowerShell -ExecutionPolicy Unrestricted -Command DiffExcel %2 %5
    

    save this bat file to somewhere on your computer, e.g. E:/Code/ExcelBDD/DiffExcel/DiffExcel.bat

    if the changed file is wanted open for further check after diff, use the below command.

    PowerShell -ExecutionPolicy Unrestricted -Command DiffExcel %2 %5 -Open
    

    Set .git/config

    add or edit the .git/config file in your repository or your global and amend the following:

    1. [diff "excel"]
    2. command = E:/Code/ExcelBDD/DiffExcel/DiffExcel.bat

    Set .gitattributes

    *.xls* diff=excel
    

    Git Diff Usage

    Totally the same as usual git diff, e.g.

    1. git status
    2. git diff theChangedExcelFile

    Other Output Example

    Changed Cells


    The -Open is set, the it reminds "The new file is open, please check."

    New Worksheet

    Missing Worksheet

  • 相关阅读:
    数据可视化 | Tableau从入门到高手 入门&联接关系&数据预处理
    Springboot中集成mongodb,mysql(密码从密码服务中获取并且动态更新)
    windows 安装Linux子系统 Ubuntu 并配置python3
    再有人问你虚拟机连接问题,把这篇文章丢给他
    Java学习笔记5.3.2 Set接口 - TreeSet类
    硬件知识:U盘相关知识介绍,值得收藏
    异步代码执行顺序
    SparkStreaming (六) --------- 优雅关闭
    基于ssm疫情居家办公OA系统获取(java毕业设计)
    欧盟地区 iOS DMA 更新后,Brave浏览器安装量激增
  • 原文地址:https://blog.csdn.net/zhangmike/article/details/133815439
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号