Move git tag if it exists
#Do this before the new commit tag=$(git tag -l --contains HEAD) # -- After the commit -- if [[ -n $tag ]]; then echo "Tag found, moving it" git tag -d $tag git tag $tag fi