4 ms·
> Production servers have no business having the .git directory anywhere. I agree with you in principle, but in practice this is not always possible, there are
by quicksilver03 11y ago
> Production servers have no business having the .git directory anywhere.
I agree with you in principle, but in practice this is not always possible, there are situations when having a git checkout in production is better than nothing.
I've seen WordPress sites where a semi-technical administrator updates plugins and themes directly in production: with that git checkout I would at least be able to track the changes and pull them in a dev or staging environment.
This could be the first step to a saner deployment workflow for those sites, where production gets changes that have been tested and validated elsewhere.