For me, master is always production ready; so I will only ever merge into master when I will immediately deploy to production at the same time.
Other teams can/will have different strategies.
I was wondering about Git branching, for instance when starting a new project.
Let's say i am starting new Laravel project. I install Laravel to master branch. Open up development branch and start working.
When i have something ready i merge it to master branch. Is this good practice and should master branch contain production ready code?
We use Feature branches for new functionality bugfixes. Every new feature branch merges to develop. When we do a release to production we have one PR which merges develop into master.
For fixing bugs we create a bugfix branch from the master branch and merge these back to both master and develop.
This model is described on the follwing site if you want to take a closer look https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow
Please or to participate in this conversation.