Can someone explain to me why committing directly to main is bad practice? What do programmers do instead?

Follow

@vaporeon_ it's nice to have a second branch (it's usually called "dev" or something like that) that contains all your planned updates that you merge to main whenever you update your project.

You can make an MR to merge dev into main every time you want to update the project, which is nice because you can check the diff to see if everything looks right.

If I'm not lazy I'll do this even for some of my smaller personal projects just cause I really like the way github shows the diff between branches in an MR.

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.