dennis-fedco Posted June 20, 2014 Share Posted June 20, 2014 I've been following http://nvie.com/posts/a-successful-git-branching-model, which recommends master, release, and develop branches, in addition to hotfix and feature branches. Since I work with another developer only, we did not use release branches as staging area but used everything else. Well, to ease on merges, the new idea is as such: use only master branch, and get rid of all others. Feature and hotfix branches can branch off of master and be merged back into master. So in short, only have one main branch called master, and remove the develop branch. Since we have {local, develop, production} servers, this will not impact actual development and testing. Removing 'develop' branch will however remove that "extra" intermediate step between the master branch and feature branches Do you see any problems with this? Or it's "to each his own, however you want to use git, use it" type thing? Quote Link to comment https://forums.phpfreaks.com/topic/289219-git-with-master-branch-only/ Share on other sites More sharing options...
trq Posted June 23, 2014 Share Posted June 23, 2014 It is a "to each his own" type thing and no, I don't see any issue with leaving out the develop branch. I have worked at places and on projects using master & develop, master, staging and develop and master alone, it really is up to you. With fewer devs (I have found), it probably makes more sense not to worry about develop. Make sure to always use feature branches however. Quote Link to comment https://forums.phpfreaks.com/topic/289219-git-with-master-branch-only/#findComment-1483062 Share on other sites More sharing options...
KevinM1 Posted June 23, 2014 Share Posted June 23, 2014 Yeah, I work with one other developer as well. We create/destroy feature branches as needed, but really only have a master branch. It works fine. Quote Link to comment https://forums.phpfreaks.com/topic/289219-git-with-master-branch-only/#findComment-1483080 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.