Skip to content

Instantly share code, notes, and snippets.

@cohama
Created October 16, 2012 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cohama/3896694 to your computer and use it in GitHub Desktop.
Save cohama/3896694 to your computer and use it in GitHub Desktop.
git で変更のあったファイルだけを抽出してコピーする。
git diff --stat HEAD^ | awk '/¥|/ {print ¥1}' | xarg cp --parents -t ./HOGEDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment