Skip to content

Instantly share code, notes, and snippets.

@brancz
Last active August 29, 2015 13:56
Show Gist options
  • Save brancz/9209241 to your computer and use it in GitHub Desktop.
Save brancz/9209241 to your computer and use it in GitHub Desktop.
copy changeset since given git commit without java class files
#!/bin/sh
git --no-pager diff --name-only $1 | grep -v class | xargs -i cp --parents -p "{}" $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment