Skip to content

Instantly share code, notes, and snippets.

@stephanokrm
Created May 10, 2019 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephanokrm/a0c00e0ee95e0beb5ad5f67f519182eb to your computer and use it in GitHub Desktop.
Save stephanokrm/a0c00e0ee95e0beb5ad5f67f519182eb to your computer and use it in GitHub Desktop.
Move Differences Between Branches to Another Folder
#!/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