yii-dev-tool icon indicating copy to clipboard operation
yii-dev-tool copied to clipboard

`release/make` command may have extra tags

Open xepozz opened this issue 3 years ago • 1 comments

Extra tags may be pushed if they were in working directory. It may break the command logic and cause misunderstanding. The better way to fix it is to clean all local tags and fetch tags from a remote repository. The snippet should be applied before any release/make calls, so it can be inside the command logic:

git tag -l | xargs git tag -d
git fetch --tags

xepozz avatar Oct 28 '22 18:10 xepozz

We can push a concrete tag that was created with git push origin tag_name.

samdark avatar Nov 13 '22 18:11 samdark