王如锵
王如锵

Reputation: 991

Stop git flow from creating a tag automatically

When I found some bugs in my project,I created a hotfix branch:

git flow hotfix start fixSomeBug

When I did some changes and commits,I wanted to merge these commits to master,so I typed

git flow hotfix finish fixSomeBug

Next I needed to write three messages:

That was fine,but I didn't want to create a tag named fixSomeBug automatically.

So what can I do to stop it?

Upvotes: 15

Views: 5041

Answers (2)

George
George

Reputation: 4413

If you want to not tag an individual hotfix you can use the -n flag:

git flow hotfix finish -n fixSomeBug

If you want to have the default not to be tagged you can set this config:

git config gitflow.hotfix.finish.notag true

Upvotes: 9

crea1
crea1

Reputation: 12567

You can use the -n operator. From the docs

-n don't tag this release

So the command will be like this

git flow hotfix finish -n fixSomeBug

Upvotes: 22

Related Questions