logoalt Hacker News

sallveburrpilast Sunday at 2:45 PM2 repliesview on HN

Pushing directly to main seems crazy - for anything that is remotely important I would use a pull request/merge request pattern


Replies

otterleylast Sunday at 7:21 PM

There's nothing wrong with pushing to main, as long as you don't blindly treat the head of the main branch as production-ready. It's a branch like any other; Git doesn't care what its name is.

show 1 reply
essephlast Sunday at 3:00 PM

Depends on the use case of the repo.