Skip to content

Instantly share code, notes, and snippets.

@hereswhatidid
Created May 5, 2014 20:26
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 hereswhatidid/1861b2f54ac47899b015 to your computer and use it in GitHub Desktop.
Save hereswhatidid/1861b2f54ac47899b015 to your computer and use it in GitHub Desktop.
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