Git导出修改文件(比较两个版本差异)
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
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




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 年前
更多推荐
所有评论(0)