Created
September 4, 2023 01:25
-
-
Save mdukat/3979999973649cd5dd8058c377c89c80 to your computer and use it in GitHub Desktop.
Git alias, to create local release tar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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