-
-
Save EdMSL/0025b9ec87a2ab78645be3faf342ac86 to your computer and use it in GitHub Desktop.
Copy git modified files to another directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cp -pv --parents `git diff --name-only master..develop -- source/directory` target/directory | |
| cp -pv --parents $(git hist --since="6am" | awk '{print $2}' | xargs | git diff --name-only HEAD $(awk {'print $NF'}) ./) ./ChangedFiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment