Skip to content

Instantly share code, notes, and snippets.

@Syafiqq
Forked from gwagroves/copy_git_diff.sh
Created October 10, 2020 11:07
Show Gist options
  • Select an option

  • Save Syafiqq/777dfffe19a51f352faf297da04307da to your computer and use it in GitHub Desktop.

Select an option

Save Syafiqq/777dfffe19a51f352faf297da04307da 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