DEV Community

Discussion on: Git Workflow: Do you commit to master on your solo projects?

Collapse
 
johannesjo profile image
Johannes Millan • Edited

I work in feature branches for bigger features, which I won't be able to finish in a day and the rest goes directly into the master branch. On work we usually have also a develop branch (following the git flow flow) but even there is not much of a benefit and it* tends to get updated very rarely.

Edit: *I meant that if we have a develop branch the master branch rarely serves a practical purpose.

Collapse
 
daveskull81 profile image
dAVE Inden

I like this approach to branch based on how long the work will take. Something short that will be done in a single sitting can be tested and pushed out to master, but a longer term feature can be put to a branch for changes to be saved remotely as well as locally until it is ready. Interesting.

Collapse
 
charlesdlandau profile image
Charles Landau

This answer exists, so I don't need to write my own. Well put!