To integrate a notebook saved in a Databricks workspace folder with a Git repository using a feature branch, follow these steps:
1) Clone the Git Repository: In the Databricks workspace, navigate to the folder where you want to create the Git repository clone. Click the down arrow next to "Add" in the upper right of the workspace and select "Git folder" from the dropdown.In the "Create Git folder" dialog, provide the URL of the Git repository you want to clone, select the Git provider (e.g., GitHub, GitLab, Azure DevOps), and name the folder.Click "Create Git folder" to clone the repository into your workspace.
2) Create and Switch to a Feature Branch: Access the Git dialog from the notebook or the Databricks Git folders browser.In the Git dialog, you can see the current working branch. To create a new branch, click the button to create a new branch. Name your feature branch and switch to it.1
3) Make Changes in the Notebook: Open the notebook you want to work on from the cloned Git folder.Make the necessary changes and save the notebook.
4)Commit and Push Changes: After making changes, access the Git dialog again. Add a commit message describing your changes.Click "Commit & Push" to push the changes to the remote Git repository on the feature branch.
5) Pull Changes from the Remote Repository: To ensure your local branch is up-to-date with the remote repository, click "Pull" in the Git operations dialog. Resolve any merge conflicts if they arise.
https://docs.databricks.com/en/repos/git-operations-with-repos.html