Skip to content

cgarcianeal/git-tag-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages