Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created December 18, 2015 16:53
Show Gist options
  • Save ethangardner/06b6ac406a950b2e5e04 to your computer and use it in GitHub Desktop.
Save ethangardner/06b6ac406a950b2e5e04 to your computer and use it in GitHub Desktop.
Using git logs and diffs with emad to deploy

Most recent commit

git show --pretty="format:" --name-only | sort | uniq > deploy.txt && emad --env production --only 0 --files-from deploy.txt && rm deploy.txt

Modified files using diff

git diff --name-only > deploy.txt && emad --env production --only 0 --files-from deploy.txt && rm deploy.txt

Commit logs

git log --pretty="format:" --name-only | sort | uniq > deploy.txt && emad --env production --only 0 --files-from deploy.txt && rm deploy.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment