Set the develop branch as the default for a pull request

送分小仙女□ 提交于 2019-12-02 18:12:18

Alternatively make develop the default branch that everyone sees when visiting the project. The downside is that anyone who clones it will get an unstable branch by default but all pull requests will go to the develop branch by default too.

Instead of using master and develop branches, use stable and master.

Then it is usually good to merge them before tagging a new version, so there is none or only little diversion. I use this schema and usually stable follows master with small delay and merges are mostly fast-forward.

To keep master branch deployable, merge feature branches when they are ready. But since you have stable branch, new features does not have to be well tested.

The github has their own suggested workflow called github flow, by convention all pull requests default to master but you can now edit it to any branch you like.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!