Windows 下 powershell 测试通过

打包最后一次提交涉及到的文件
git archive --format=zip --output=files.zip HEAD $(git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT HEAD)
打包指定(ID)提交涉及到的文件
git archive --format=zip --output=files.zip HEAD $(git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT xxxxxx)
打包两个版本之间的差异
git archive --format=zip --output=files.zip HEAD $(git diff-tree -r xxxxxx1 --name-only --diff-filter=ACMRT xxxxxx2)
打包某次提交之后的所有文件(不含当前)
git archive --format=zip --output=files.zip HEAD $(git diff-tree -r xxxxxx --name-only --diff-filter=ACMRT HEAD)
打包 Master
git archive --format=zip --output master.zip master
打包 Head
git archive --format=zip --output head.zip HEAD
打包 Tag
git archive --format=zip --output v1.0.0.zip v1.0.0
打包最后修改的文件(不管有没有 add 或 commit ),只要 git diff 有变化就会打包
git archive --format=zip -o update.zip HEAD $(git diff --name-only HEAD^)
打包两个分支之间的差异
git archive --format=zip -o update.zip HEAD $(git diff --name-only master 1.0.0)
打包两个版本 (commit) 间的差异
git archive --format=zip -o update.zip HEAD $(git diff --name-only HEAD~2)

评论

:doodle { @grid: 1x5 / 100vmin; } @place-cell: center; width: @rand(45vmin, 75vmin); height: @rand(45vmin, 75vmin); transform: translate(@rand(-120%, 120%), @rand(-80%, 80%)) scale(@rand(.8, 2.8)) skew(@rand(45deg)); clip-path: polygon( @r(0, 30%) @r(0, 50%), @r(30%, 60%) @r(0%, 30%), @r(60%, 100%) @r(0%, 50%), @r(60%, 100%) @r(50%, 100%), @r(30%, 60%) @r(60%, 100%), @r(0, 30%) @r(60%, 100%) ); background: @pick(#f44336, #9c27b0, #673ab7, #3f51b5, #60569e, #e6437d, #ebbf4d, #00bcd4, #03a9f4, #2196f3, #009688, #5ee463, #f8e645, #ffc107, #ff5722, #43f8bf, #e136eb, #32ed39); opacity: @rand(.5, .9); position: relative; top: @rand(-80%, 80%); left: @rand(0%, 80%); animation: colorChange @rand(6.1s, 26.1s) infinite @rand(-.5s, -2.5s) linear alternate; @keyframes colorChange { 100% { left: 0; top: 0; filter: hue-rotate(360deg); } }