Hacker News new | ask | show | jobs
by chmike 3219 days ago
We need a git repo holding the production version.

This is also where the continuous integration tests usually take place.

What is a good point of the OP is that people may not be sharing and testing code enough before pushing to the reference repo.

1 comments

Out of interest why do you "need" a repo/branch replicating production? I ask out of curiousity rather than criticism.

We also have the same at my place of work, but for convenience when requiring to patch production - ie just branch master rather than scramble to find the commit hash last released. It's not a requirement, but it definitely makes life easier.

Because it provides a unique reference point. If there wasn't such a a reference point, there is a risk that the production branch of programmers becomes desynchronized.

It is easier and safer to have n developpers synchronizing to one reference repository, than to keep n developpers and repositories synchronized with each other.