DEV Community

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

Collapse
 
8ucik profile image
8ucik

I mostly use 3 branches. Master, Testing and Buggy. I commit to testing all the time. When everything is done I merge the Testing with Master. If I want to try develop a new feature I commit to Buggy and validate the issues there to have testing saved with a clear path.

Collapse
 
daveskull81 profile image
dAVE Inden

Neat. One of the reasons I stay away from branches is that I once made a new branch each time I built a new feature and managing / deleting old branches was a pain. I do like the idea of having a working branch to commit to and merging it into master when I need to deploy.

Collapse
 
jonasroessum profile image
Jonas Røssum • Edited

Same. GitHub helps me a lot with this, as deleting the branch is suggested whenever you merge a pull request. You still gotta delete them locally, but I recommend using your remote repository as the "source of truth", so that you can always delete branches that are no longer coupled to a pull request, if that makes sense.

Thread Thread
 
daveskull81 profile image
dAVE Inden

That does make sense and I agree that GitHub helps a lot with this. The management of local branches to me is a painful process and part of why I asked this question.