Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creates an archive of the files that are different between the master and development branches using Sourcetree on the Mac.
#!/bin/sh
args=("$@")
git archive -o deploy/deploy-devcompare.zip HEAD $(git diff-tree --no-commit-id --name-only -r master..development)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.