Re:Linus on keeping a clean git history (2009)
by saraid216 on Thursday October 04, 2012 @12:57PM
(#4613206)
I'd suggest writing a git hook on pre-rebase.
[ Parent
| on HN ]
Re:Linus on keeping a clean git history (2009)
by uxp on Thursday October 04, 2012 @04:31PM
(#4614221)
One could also write a pre-receive hook on their git server that denies force pushing, so it becomes impossible to overwrite published history. Combined with a gatekeeper approach of denying pushes to the master branch to all developers except an assigned reviewer, this helps foster the idea that unstable code should always remain local and not be published.