Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
We are slowly migrating our SVN repositories to Bitbucket (GIT) and we are running into some issues.
Our core software runs at many different customers and some customers use older versions of our core software, and we cannot simply upgrade the software at those customers. This means that we have multiple (minor) versions of our software that we have to maintain (add new features or do bug fixes).
For example, we have following versions:
These versions are highly dependable, so if we fix a bug in 4.0, there is a big chance we have to merge this fix to 4.1 and 4.2 as well. Same goes for the other way (from 4.2 downwards).
What is in your opinion the best way to set up this repository in git/bitbucket?
We are still quite new at git, and are still quite used to SVN, so we don't know the best practices yet.
Creating one repository and using branches on demand is the way to go.
Branches should be seen of dual use - they may be temporary as well as long-lasting depending of the purpose of the branch.
Your version branches are definetly long-living branches.
Starting your development you do not need any branches at all - beside of the master branch (this one you need for sure). Just follow your linear development:
4.0.0-->4.0.1-->4.0.2-->4.1.0-->4.1.1-->4.2.0
All those Versions do have git tags, describing the version.
Now you have to deliver a fix for v4.0 - thats the time of point to create a branch (branch on demand) on the latest v4.0 version on master branch
4.0.0-->4.0.1-->4.0.2-->4.1.0-->4.1.1-->4.2.0
\
\-------------------------->4.0.3(--->4.0.4 .... )
This new branch holds the v4.0 development line. On this brach you create subsequent v4.0 versions (4.0.4 ....). A suggested branch name would be "v4.0" (sic!)
To have the 4.0.3 fix available in v4.1development line, create a branch on the latest v4.1 version and merge the changes from v4.0-branch to this new branch ... creating version 4.1.2
/--------------------->4.1.2
/ / 4.0.0-->4.0.1-->4.0.2-->4.1.0-->4.1.1-->4.2.0 /MERGE
\ /
\-------------------------->4.0.3
And having the 4.0.3 fix available in v4.2 just merge into master ... creating version 4.2.1
/-------------------->4.1.2
/ 4.0.0-->4.0.1-->4.0.2-->4.1.0-->4.1.1-->4.2.0--------------------->4.2.1
\ /MERGE
\--------------------------->4.0.3
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.