Git branching strategy for Agile project

0 votes

I have a project that is located in Git Stash Repository. The code will be deployed in four environments(Dev, Test, Stage and Prod). We follow Agile methodology. So dev team works for both Release activities and Non Release( Future Release) activities. I have to create branches based on this requirement. Below is my plan.

Three stable branches: master, release and develop.

master is the default branch. develop will be created from master. release will be created from develop

feature branches --> they will be created from develop. each developer has one feature branch and they merge the code into develop branch once done. so dev environment deployment will happen from develop branch.

if changes need to go Test environment, we have two ways here. one is merge the develop branch with release branch( Test environment deployment will happen from release branch). We can not implement this since develop branch may have both release and non release changes.

another one way is merge the feature branches directly into release branch. so that each developers changes can be merged into release branch. I am not sure whether i can implement this method. Can someone please tell me if this way will work? is there any alternate way to handle this situation.

branching:

master branch---> develop branch --> release branch

develop branches --- feature branch1 | feature branch2 | feature branch3


deployments:

develop branch for --> dev deployments

release branch for --> test deployments

master branch for --> stage and prod deployments

I can not merge develop branch into release branch. Since develop branch has some non- release changes as well. I need only release changes on release branch. can feature branches be merged into release branch directly? What is the best approach here?

Apr 13, 2022 in PMP by Edureka
• 13,690 points
1,214 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Branching and merging in Git
Branching out from develop are feature branches. Re-enter develop mode.
Release branches are offshoots of develop. Return to both develop and master.
Branch off from master for hotfixes. Return to both develop and master.

Git's primary branches
The origin server (or core repository, such as Github or Bitbucket) contains two major branches, each of which has an endless lifespan:

Master: This branch is always in a production-ready state, and it is the branch to which the production server is deployed. The master tag is used to tag releases.
Develop: This branch is for development and change integration. It's always in a state that reflects the most recent delivered development modifications for the next release, and it's distributed to the development environment so that other Agile team members may see and test the new features.
answered Apr 13, 2022 by gaurav
• 23,260 points

edited 5 days ago

Related Questions In PMP

0 votes
1 answer

What’s the best project management tool for Agile teams?

The best project management tool for Agile ...READ MORE

answered Nov 8, 2024 in PMP by Diya
164 views
0 votes
1 answer

What’s your strategy for balancing innovation with risk in a project?

Innovation and risk need to be balanced ...READ MORE

answered Dec 24, 2024 in PMP by Anu
92 views
0 votes
0 answers

What’s your strategy for managing project fatigue in a long-term project?

In long-term projects, teams can experience fatigue, ...READ MORE

Jan 28 in PMP by Hoor
• 4,690 points
69 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

How do I prepare for a project manager interview?

PMP® Certification is known as the golden standard in ...READ MORE

answered Jul 23, 2020 in PMP by Roshni
• 10,480 points
1,070 views
0 votes
1 answer

What is Agile Project Management?

Agile methodology is an incremental and iterative ...READ MORE

answered Jul 24, 2020 in PMP by Sirajul
• 59,230 points
921 views
0 votes
1 answer

What will be the greatest challenge for project managers in 2025?

There are multiple reasons which can take ...READ MORE

answered Jul 25, 2020 in PMP by Gitika
• 65,770 points
862 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP