Git diff --name-only and copy that list

后端 未结 7 764
眼角桃花
眼角桃花 2021-01-29 18:55

I just want to get a list of changed files between two revisions, which is simple:

git diff -–name-only commit1 commit2 > /path/to/my/file

B

7条回答
  •  春和景丽
    2021-01-29 19:06

    It works perfectly.

    git diff 1526043 82a4f7d --name-only | xargs zip update.zip
    
    git diff 1526043 82a4f7d --name-only |xargs -n 10 zip update.zip
    

提交回复
热议问题