Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop git flow from creating a tag automatically

Tags:

git

git-flow

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?

like image 630
王如锵 Avatar asked Nov 16 '15 11:11

王如锵


People also ask

What does git flow release finish do?

This ensures that any fixes made to the release after the initial branching make it back into development. The Gitflow release branch is made from the develop branch and gets merged into both master and develop when finished.

Why do we use Gitflow?

Gitflow can be used for projects that have a scheduled release cycle and for the DevOps best practice of continuous delivery. This workflow doesn't add any new concepts or commands beyond what's required for the Feature Branch Workflow.

Do git tags get merged?

The literal answer to the question in your subject line—Are git tags merged? —is "no", but that's not an interesting answer, because neither are branch names. Merges, in Git, work through commits.

What is Gitflow?

Git flow is a popular Git branching strategy aimed at simplifying release management, and was introduced by software developer Vincent Driessen in 2010. Fundamentally, Git flow involves isolating your work into different types of Git branches.


1 Answers

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
like image 65
crea1 Avatar answered Oct 22 '22 05:10

crea1