DEV Community

Discussion on: Do you Git Branch in personal projects?

Collapse
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 😄☕

Collapse
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.

Collapse
ronan696 profile image
Ronan D'Souza

I too follow this approach 😎

Collapse
madza profile image
Madza Author

Solid approach 👍

Collapse
florianjisopp profile image
Florian J. Isopp

I also like this approach