drakejin
drakejin

Reputation: 204

Using git flow, it didn't change the master branch. Is that right?

Why wasn't my master branch changed after I executed this command line?

git flow release finish v0.0.1
# 1. Write merge message
# 2. Write tag name and message
git push --tags

Using git flow command(git flow), I tried to follow their strategy. My project's master branch wasn't changed by executing some command lines (Branch name release number). It only changed the develop branch and created a tag on the master branch. It did not merge the master branch.

git flow release finish v0.0.1
# 1. Write merge message
# 2. Write tag name and message
git push --tags

The log below is the result of the above command lines:

$ git flow release finish v0.0.1 

Summary of actions:

  • Release branch 'release/v0.0.1' has been merged into 'master'
  • The release was tagged 'v0.0.1'

Username for 'https://github.com': drake-jin Password for 'https://[email protected]': Counting the number of objects : 1, complete. Writing objects: 100% (1/1), 188 bytes | 0 bytes/s, complete. Total 1 (delta 0), reused 0 (delta 0) To https://github.com/drake-jin/♥

  • [new tag] v0.0.1 -> v0.0.1

git flow official document said that it will merge release branch and master branch

This picture is part of an officially provided document from git flow repository.

I am not clear what this part of this picture means:

Boom. git-flow pulls from origin, merges the release branch into master, tags the release and back-merges everything back into develop before removing the release branch.

This part said that master branch is merged with release branch. Isn't it?

Actually, I can't still understand it. Why isn't my master branch changed? It just has a tag.

Upvotes: 1

Views: 962

Answers (1)

isaac-fisher
isaac-fisher

Reputation: 105

Finish release will both merge the release into master and into develop. But it is still all happened locally - Could it be that you didn't push it to the origin?

Upvotes: 2

Related Questions