Skip to content

Instantly share code, notes, and snippets.

@karrikas
Last active February 15, 2021 14:34
Show Gist options
  • Save karrikas/5d0bd3915f131a275a208cfadae496e8 to your computer and use it in GitHub Desktop.
Save karrikas/5d0bd3915f131a275a208cfadae496e8 to your computer and use it in GitHub Desktop.
Copy modified files between git commits
cp -pv --parents $(git diff --name-only sha1 sha2) ../path/to/copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment