Skip to content

Instantly share code, notes, and snippets.

@mdukat
Created September 4, 2023 01:25
Show Gist options
  • Save mdukat/3979999973649cd5dd8058c377c89c80 to your computer and use it in GitHub Desktop.
Save mdukat/3979999973649cd5dd8058c377c89c80 to your computer and use it in GitHub Desktop.
Git alias, to create local release tar
alias git-release='git status >/dev/null && TARNAME=$(basename $(pwd))-$(git branch --show-current)-$(git rev-parse --short HEAD).tar && tar cf ${TARNAME} $(git ls-tree -r HEAD --name-only | tr "\n" " ") && echo "${TARNAME}"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment