Git导出修改文件(比较两个版本差异)

git如何导出差异化版本文件列表
git diff这个命令列出我们想要的文件目录
$ git diff 2da595c daea1d6 --name-only

使用linux命令zip把列出的文件进行打包
$ zip update.zip ... 所有的文件...

xargs将前一个命令的输出转成另外一个命令的参数
$ git diff 2da595c daea1d6 --name-only | xargs zip update.zip

window版本
右键Git Bash Here
git archive -o update.zip HEAD $(git diff 70ad949... 7046619... --name-only)

七位数 git log

 

GitHub 加速计划 / li / linux-dash
10
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:23 天前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐