Jump to content

git with master branch only?


dennis-fedco

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/289219-git-with-master-branch-only/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.