Branching, committing, and opening pull requests from inside the Databricks workspace
Databricks Repos syncs a folder in your workspace with a remote Git repository, letting you manage branches, commits, and pull requests without leaving the Databricks UI. This supports standard Git workflows so notebooks and code can be version-controlled alongside CI/CD pipelines.
1 · Learn the must-know
- You must connect a Git provider (e.g., GitHub, GitLab, Bitbucket, Azure DevOps) via personal access token in User Settings before cloning a repo into Databricks Repos.
- The branch selector in the Repos UI lets you create a new branch from an existing one and switch branches directly, checking out the latest commit for that branch.
- Changes to notebooks and files in a repo are tracked as uncommitted changes; you use the built-in dialog to stage, commit with a message, and push to the remote.
- Databricks Repos does not support merging branches directly in the UI; merges and pull requests are completed on the Git provider's site, though Databricks provides a link/button to open the PR creation page.
- Pulling changes from the remote updates the workspace copy, and conflicts must be resolved in the Git provider (or locally), since Databricks Repos has no built-in merge conflict resolution tool.
- Notebooks are stored in source format (e.g., .py, .sql, .ipynb) in Repos so diffs are readable in Git, unlike the default Databricks notebook (.dbc) format.
2 · Check your understanding
Check this objectiveFree · always available
A data engineer is working in a Databricks Git folder that is currently checked out on the main branch. Before editing a notebook to add a new transformation step, the engineer wants to isolate the change so main stays deployable. Which action should the engineer take first?
Your objective map0 tried · 0 answered correctly · 33 untouched
What you have tried across Databricks DEA's objectives, not a readiness score.
Databricks Intelligence Platform6% of the exam0 of 2 tried
Data Ingestion and Loading21% of the exam0 of 7 tried
Data Transformation and Modeling22% of the exam0 of 7 tried
Working with Lakeflow Jobs16% of the exam0 of 4 tried
Implementing CI/CD10% of the exam0 of 4 tried
Troubleshooting, Monitoring, and Optimization10% of the exam0 of 5 tried
Governance and Security15% of the exam0 of 4 tried
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.