Contents
Do we need develop branch?
Thus, the actual answer to this question should be: You don’t necessarily need the develop branch if you adapt your workflow as described in the linked posts. Still, you wouldn’t merge your features into the release branches, but to the master branch, as you want them to be available in the future versions as well.
Why do we need git branch?
A branch represents an independent line of development. The git branch command lets you create, list, rename, and delete branches. It doesn’t let you switch between branches or put a forked history back together again. For this reason, git branch is tightly integrated with the git checkout and git merge commands.
Why is the development branch always newer than the production branch?
From my understanding, master should always be totally stable and reflect production. If developers are working on feature branches, and then merging those into master when they’re done, that means there’s a period of time where features/fixes are being merged into master and the master branch is actually newer than production.
Why are people moving away from the develop branch?
EDIT: This question is different than “to branch or not to branch.” It specifically addresses people moving away from using the develop branch and the reasons surrounding that, since that was touted as a best practice for a long time. It comes from the CI mindset where there is integration several times a day.
Why is the ” develop ” branch going away in Git?
Imagine if people are merging straight into master, and a bug is reported in production that becomes difficult to fix because the master branch codebase has changed significantly. Then the devs just have to tell the user to wait until the next release to see the issue resolved. EDIT: This question is different than “to branch or not to branch.”
When does a feature branch merge into a master branch?
If developers are working on feature branches, and then merging those into master when they’re done, that means there’s a period of time where features/fixes are being merged into master and the master branch is actually newer than production.