To prevent from force push to `master` branch, do as follows:
Settings -> Branches -> Protected branches -> master
Check `Protect this branch`.
Reference:
http://stackoverflow.com/questions/7419244/elegant-solution-to-prevent-force-push-on-master-only
No comments:
Post a Comment