2 ms·
Of course! I hope you don't avoid using your version control system because you're waiting until you have a perfect, sensible commit and you don't want/know how
by ninkendo 8y ago
Of course! I hope you don't avoid using your version control system because you're waiting until you have a perfect, sensible commit and you don't want/know how to squash them later.
My commits locally are 100% my damned business. I don't want any automated system messing with the way I commit anything. Ever. When I push to the server (and particularly when I open up a PR), I will have squashed my commits, or separated and arranged them sensibly so that they're easy to read and understand, and they must pass linting/PR checks before they get merged to master.
Commit hooks are the absolute worst way to accomplish this goal, and fuck any system that confuses the two concepts (what I'm committing locally vs what goes to master), and any system that gets in the way of my local development loop. Go back to SVN if you want every commit you make to be instantaneously put in master and distributed to every other developer.