DEV Community

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

Collapse
 
chiangs profile image
Stephen Chiang

Pushing to master branch for me triggers a build process so I always build on develop or a feature branch even on my solo projects.

Collapse
 
daveskull81 profile image
dAVE Inden

Do you use your develop branch for all new feature work? Or do you create a new branch for each new feature?

Collapse
 
chiangs profile image
Stephen Chiang

I try to always make a branch to work off then merge to Develop and then to Master.

I do this because it's similar to the flow I use in teams. I also like making release snapshots in case I need to roll back what is in production.

Also, thanks to my new handy git function, I really like typing g donep and watch my merge and branch cleanup happen all by itself...quite satisfying.

Thread Thread
 
daveskull81 profile image
dAVE Inden

Thatโ€™s a really cool function. I will have to try that out and see if it can help me with my workflow. Thanks!