French web developer mainly but touches everything. Volunteer mod here at DEV. I learn Nuxt at this moment and databases. — Addict to Cappuccino and Music
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.
Yeah of course! Always versionning privates projects with only me to contributor.
Example :
When dev is ready, I merge all on main branch 😄☕
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
anddevelop
. I usedevelop
just like how I usedmaster
in the past, and push tomain
when I'm sure I don't need force push.main
has a branch protection rule that requires CI passing and forbids force pushes.I too follow this approach 😎
Solid approach 👍
I also like this approach