Skip to content

Latest commit

 

History

History
executable file
·
25 lines (18 loc) · 1.01 KB

README.md

File metadata and controls

executable file
·
25 lines (18 loc) · 1.01 KB

git-tag-cleanup

Repo with a Bash script to remove tags from a git repo

The script takes few non-positional arguments/options:

Script usage:

usage: ./removal.sh [-v] [-b] [-d <YYYY-MM-DD>] [-r <GitHub-URL>]

arguments:"

  • "-v Verbose output"
  • "-b Debug output. All deletions must be approved manually"
  • "-d date input for tags to be removed before (inclusive), format YYYY-MM-DD
  • "-r repo GitHub URL from which tags will be removed"
  • "-y yes mode, not asking for any deletion approval. Does not work with debug option"

Example usage for calling script to delete all tags in kubernetes git repo before and including 2016-07-01. Also adding the verbose and debugging output.

./git-tag-cleanup/removal.sh -r https://github.com/kubernetes/kubernetes -d 2016-07-01 -bv