Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #304 from caarlos0/nuke-tag
Browse files Browse the repository at this point in the history
also nuke tags
  • Loading branch information
caarlos0 authored Jan 19, 2017
2 parents 325bb11 + e563a8b commit fbf991d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/git-nuke
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/sh
#
# Nukes a branch locally and on the origin remote.
# Nukes a branch or tag locally and on the origin remote.
#
# $1 - Branch name.
#
# Examples
#
# git nuke add-git-nuke

git branch -D "$1"
git show-ref --verify refs/tags/"$1" && git tag -d "$1"
git show-ref --verify refs/heads/"$1" && git branch -D "$1"
git push origin :"$1"

0 comments on commit fbf991d

Please sign in to comment.