Skip to content

Instantly share code, notes, and snippets.

@gwagroves
Created September 12, 2017 18:14
Show Gist options
  • Save gwagroves/81bb3026facd62c0aa0dbf78b8daca81 to your computer and use it in GitHub Desktop.
Save gwagroves/81bb3026facd62c0aa0dbf78b8daca81 to your computer and use it in GitHub Desktop.
Copy git modified files to another directory
cp -pv --parents `git diff --name-only master..develop -- source/directory` target/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment