Skip to content

Instantly share code, notes, and snippets.

@jairov4
jairov4 / gh-dl-release.sh
Last active April 21, 2020 15:15 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@jairov4
jairov4 / gist:b225f3dc894ae7e47238c2636dc8160e
Created January 16, 2019 15:14 — forked from shsteimer/gist:7257245
Tip to delete tags by pattern
#delete all the remote tags with the pattern your looking for, ie. DEV-
git tag | grep <pattern> | xargs -n 1 -I% git push origin :refs/tags/%
#delete all your local tags
git tag | xargs -n 1 -I% git tag -d %
#fetch the remote tags which still remain
git fetch