14

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:

  • Write a message for merging to master

  • Write a message for tag: fixSomeBug

  • Write a message for merging to develop

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

So what can I do to stop it?

Chris Maes
  • 35,025
  • 12
  • 111
  • 136
王如锵
  • 941
  • 7
  • 17

2 Answers2

20

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
crea1
  • 11,077
  • 3
  • 36
  • 46
8

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

m.elewa
  • 187
  • 1
  • 9
George
  • 4,323
  • 3
  • 30
  • 33