Hacker News new | ask | show | jobs
by jamienicol 399 days ago
That problem is solved by preventing forced pushes. Rewriting history locally is encouraged.
1 comments

Prevent forced pushes on protected branches (develop, main, hotfix etc.). I don't care if somebody force pushes their private feature branch.
Force pushing onto PR branches is the only way to make the commit history in them sane.

But GH's PR process is broken anyways. I miss Gerritt.