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