On this pagemb.get_branch() Retrieves the name of the current git branch. Works both in notebooks and deployments. Example if mb.get_branch() == "main": ... See also mb.switch_branch mb.in_modelbit mb.get_deployment_info Working with Git in Modelbit