git: copy changed/added files to separate directory

raw

commands.sh

1
2
3
$ git diff --name-only aa6860f|xargs -L1 dirname|sort|uniq|xargs -L1 --replace=IN mkdir -p /tmp/test/IN
$ git diff --name-only aa6860f|xargs -L1 --replace=IN cp IN /tmp/test/IN
 
Christian Weiske Christian Weiske
owner

History