Skip to content

Instantly share code, notes, and snippets.

@salgo
Created October 6, 2014 09:25
Show Gist options
  • Save salgo/3208d2d29d13881e03d1 to your computer and use it in GitHub Desktop.
Save salgo/3208d2d29d13881e03d1 to your computer and use it in GitHub Desktop.
Little bit of bash to remove the current cookbook tag :)
#!/usr/bin/env bash
VERSION=`grep 'version' metadata.rb | grep -o "[0-9.]" | tr -d '\n'''`
git tag -d $VERSION
git push origin :refs/tags/$VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment