gitmavenbranchreleasebest-fit

Is it good practice to release from a featurebranch and what are advantages and disadvantages?


What are the consequences for software development if we do release a jee project from a feature branch. We are using GIT. Is it a better practice to merge back to the developer / release branch and then build a release from there?


Solution

  • Every team has their preferred workflow for git however, one fairly common one that seems to work well for a lot of people is Gitflow.

    The general premise is that you have 2 primary branches, master and develop. All feature branches are based off of the develop branch and thus merged back into this branch once they have been peer reviewed and tested. The master branch serves as your production branch. Therefore, the team decides to merge the develop branch into master when they want to deploy a new release of the application.