dac09
2/19/2015 - 12:15 AM

Move git tag if it exists

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