Y
Hacker News
new
|
ask
|
show
|
jobs
by
sallveburrpi
183 days ago
Pushing directly to main seems crazy - for anything that is remotely important I would use a pull request/merge request pattern
2 comments
otterley
183 days ago
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.
link
sallveburrpi
183 days ago
Yea ofc I was implying that main is the branch that is pushed to production.
link
esseph
183 days ago
Depends on the use case of the repo.
link