DEV Community

Discussion on: Do you Git Branch in personal projects?

thomasbnt profile image
Thomas Bnt

Yeah of course! Always versionning privates projects with only me to contributor.

Example :

Main branch — For production
Dev branch — For dev and test mode
Enter fullscreen mode Exit fullscreen mode

When dev is ready, I merge all on main branch 😄☕

yoursunny profile image
Junxiao Shi • Edited on

I used to have master only. If CI fails or I find a typo, I'll force push. I keep getting complaints regarding the force pushes.

Now I have main and develop. I use develop just like how I used master in the past, and push to main when I'm sure I don't need force push. main has a branch protection rule that requires CI passing and forbids force pushes.

ronan696 profile image
Ronan D'Souza

I too follow this approach 😎

madza profile image
Madza Author

Solid approach 👍

florianjisopp profile image
Florian J. Isopp

I also like this approach