On this pageget_branch Retrieve the name of the current Git branch. Works both in Python notebooks and deployments at inference time. Example Check if the current branch is the main branch: if mb.get_branch() == "main": ... See also switch_branch in_modelbit get_deployment_info Working with Git in Modelbit