cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

legacy Git integration has been removed from Notebook

Eren_DE
New Contributor

How to integrate a notebook saved in workspace folder with git repos with feature branch? 

2 REPLIES 2

Mounika_Tarigop
Databricks Employee
Databricks Employee

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

FierceSkirtsist
New Contributor II

Integrating a Databricks notebook with a Git repository using a feature branch sounds like a clean workflow for version control. The step-by-step process makes it straightforward to collaborate and track changes effectively. It's great that Databricks has these Git integration features built-in, simplifying development workflows! 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group