3 ms·
Deleting a branch is also a destructive operation last time I checked. Force push could also be implemented by deleting the branch and pushing a different SHA1
by wereHamster 13y ago
Deleting a branch is also a destructive operation last time I checked. Force push could also be implemented by deleting the branch and pushing a different SHA1 into the same name.
- StefanKarpinski 13y agoYes, that's true. Protecting a branch from deletion would be another nice feature and could be tied to denying forced pushes. Both can be construed as the branch being "public".
- lotyrin 13y agoThe default branch is already protected from deletion. They just need to add the option to also reject force pushes.