Skip to content

Instantly share code, notes, and snippets.

@yaph
Created July 7, 2011 20:31
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 yaph/1070476 to your computer and use it in GitHub Desktop.
Save yaph/1070476 to your computer and use it in GitHub Desktop.
copy changed files in git repo to target directory, paths are not retained
git diff --name-only | xargs -I {} cp {} /target_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment