Skip to content

Instantly share code, notes, and snippets.

View EdMSL's full-sized avatar

Eduard Trait EdMSL

  • Russia, Novosibirsk
View GitHub Profile
@EdMSL
EdMSL / copy_git_diff.sh
Last active January 30, 2025 09:10 — forked from gwagroves/copy_git_diff.sh
Copy git modified files to another directory
cp -pv --parents `git diff --name-only master..develop -- source/directory` target/directory
cp -pv --parents $(git hist --since="6am" | awk '{print $2}' | xargs | git diff --name-only HEAD $(awk {'print $NF'}) ./) ./ChangedFiles