Skip to content

Instantly share code, notes, and snippets.

View fracarma's full-sized avatar
🏠
Working from home

Francesco Carmagnola fracarma

🏠
Working from home
View GitHub Profile
@fracarma
fracarma / copy-commit-files.sh
Created September 21, 2022 12:01
Copy every modified file by a commit
export DIFF_FILES=$(git diff-tree --no-commit-id --name-only -r fab52c70433764eb16f654d65454bb1af26bca20)
echo $DIFF_FILES | cpio -pvdumB target-folder/