git根据版本进行导出改动的文件

git archive -o ../updated.zip HEAD $(git diff --name-only HEAD)

git archive -o ../latest.zip NEW_COMMIT_ID_HERE $(git diff --name-only OLD_COMMIT_ID_HERE NEW_COMMIT_ID_HERE)

git diff --name-only 76f4ccc65619f0cda40d7b2fa9f4bcf1cdf3934a e13374a780bbe40fb96e5a7d6ef3fd100c97984b > list.txt

git archive -o ../latest.zip list.txt

git archive -o latest.zip HEAD //导出最近修改

  

posted on 2017-04-12 18:02  郑州名扬  阅读(3705)  评论(0编辑  收藏  举报

导航