Protected git branches
You can prevent accidental changes in Modelbit with protected branches. Modelbit works with your branch protection rules in GitHub and Gitlab by preventing changes that don't come from approved merge requests.
You must first connect GitHub or Gitlab to your Modelbit workspace to use protected branches. Once your repository is connected you can enable branch protection for any branch in the
Git Settings tab by changing the
Deployments, datasets, endpoints, and other assets on protected branches will no longer be editable in Modelbit's web app or using the
modelbit Python package. All changes must be made through merge requests in your connected GitHub or Gitlab repository.