Skip to content

Instantly share code, notes, and snippets.

@ryanpadilha
Last active May 23, 2018 21:44
Show Gist options
  • Save ryanpadilha/4444d6c4a65af1fad5618281026d0914 to your computer and use it in GitHub Desktop.
Save ryanpadilha/4444d6c4a65af1fad5618281026d0914 to your computer and use it in GitHub Desktop.
TARGET=$WORKSPACE/target
PROJECT_NAME=project-name
if [ ! -d "$TARGET" ]; then
mkdir -p "$TARGET"
fi
tar --exclude="$WORKSPACE/.git" --exclude="$WORKSPACE/.idea" --exclude="$WORKSPACE/venv-sandbox" --exclude="$WORKSPACE/target" -pczvf $TARGET/$PROJECT_NAME.tar.gz $WORKSPACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment