Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Centralized GIT workflow/deployment - Release Branch

Following on from my previous question regarding feature branches with you can find here Centralized GIT workflow/deployment - Repository Initialization and Feature Branches I've got a few questions about 'Release branches'.

Firstly, I'll go through the workflow:

The state of develop is ready for the “next release” and we have decided that this will become version 1.0

git checkout -b release-1.0 develop

./bump-version.sh 1.0

OK my first question. Do I need to create the bump-version script or can I download it from somewhere? What does it specifically do and where does it need to be installed?

like image 916
Derek Carlisle Avatar asked Apr 27 '26 12:04

Derek Carlisle


1 Answers

I'm a bit confused about your question. Do you need a script that can tell you the actual version number?

You could try git describe master for instance, which will give you a specific name from the latest tag you created. Take a look on the Preparing a release section on the Pro Git book.

like image 74
rlegendi Avatar answered Apr 29 '26 00:04

rlegendi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!