Return to site

GIT FLOW RELEASE: the commands behind the command

ยท coding,devops,poll

Have you ever used '๐’Ž๐’—๐’ -๐‘ฉ ๐’ˆ๐’Š๐’•๐’‡๐’๐’๐’˜:๐’“๐’†๐’๐’†๐’‚๐’”๐’†-๐’”๐’•๐’‚๐’“๐’• ๐’ˆ๐’Š๐’•๐’‡๐’๐’๐’˜:๐’“๐’†๐’๐’†๐’‚๐’”๐’†-๐’‡๐’Š๐’๐’Š๐’”๐’‰'?

 

It is used to proceed to the release of your develop branch.

Let's see what it does behind the scene:

 

1๏ธโƒฃ ๐Ÿ…ต๐Ÿ…ธ๐Ÿ†๐Ÿ†‚๐Ÿ†ƒ, ๐Ÿ…ถ๐Ÿ…ธ๐Ÿ†ƒ ๐Ÿ…ต๐Ÿ…ป๐Ÿ…พ๐Ÿ†† ๐Ÿ†‚๐Ÿ†ƒ๐Ÿ…ฐ๐Ÿ†๐Ÿ†ƒ

$ ๐’ˆ๐’Š๐’• ๐’‡๐’๐’๐’˜ ๐’“๐’†๐’๐’†๐’‚๐’”๐’† ๐’”๐’•๐’‚๐’“๐’• 1.4.0

This will automatically do the following:

๐Ÿ‘‰ create a new branch named release/1.4.0 from the develop branch,

๐Ÿ‘‰ checkout the release/1.4.0 branch.

 

2๏ธโƒฃ ๐Ÿ†ƒ๐Ÿ…ท๐Ÿ…ด๐Ÿ…ฝ, ๐Ÿ…ถ๐Ÿ…ธ๐Ÿ†ƒ ๐Ÿ…ต๐Ÿ…ป๐Ÿ…พ๐Ÿ†† ๐Ÿ…ต๐Ÿ…ธ๐Ÿ…ฝ๐Ÿ…ธ๐Ÿ†‚๐Ÿ…ท

$ ๐’ˆ๐’Š๐’• ๐’‡๐’๐’๐’˜ ๐’“๐’†๐’๐’†๐’‚๐’”๐’† ๐’‡๐’Š๐’๐’Š๐’”๐’‰ 1.4.0

This will:

๐Ÿ‘‰ Merge changes into the master branch,

๐Ÿ‘‰ Create a 1.4.0 tag,

๐Ÿ‘‰ Merge changes into the develop branch,

๐Ÿ‘‰ Remove your local release\1.4.0 branch.