Created
May 10, 2019 10:59
-
-
Save stephanokrm/a0c00e0ee95e0beb5ad5f67f519182eb to your computer and use it in GitHub Desktop.
Move Differences Between Branches to Another Folder
This file contains 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
#!/usr/bin/env bash | |
for FILE in $(git diff --name-only desenvolvimento) | |
do | |
rsync -avzh --relative ${FILE} /absolute/path | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment