Skip to content

Instantly share code, notes, and snippets.

@asagajda
Created May 2, 2018 16:23
Show Gist options
  • Save asagajda/da0df7e6770cc74a7a72c25d45bbea25 to your computer and use it in GitHub Desktop.
Save asagajda/da0df7e6770cc74a7a72c25d45bbea25 to your computer and use it in GitHub Desktop.
Get tar.gz with renaming dir to include git current hash in dirname
tar cvzf dist-dd-mm-yyyy.tar.gz dist --transform s/dist/dist-$(git rev-parse HEAD | cut -c 1-7)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment