Version control with Git in Fabric

By Hatnest · Reviewed by Saurav Raj Joshi · Updated Nov 30, 2026

Git integration lets you keep the definitions of the items in a Fabric workspace in a Git repository. You get history, the ability to go back to an earlier state, branches for isolated work, and the pull request habits your developers already know. It works at workspace level: one workspace is connected to one branch (and one folder) of one repository, and its items are versioned together.

Providers and what gets versioned

Supported providers are Azure DevOps, GitHub and GitHub Enterprise, all cloud-based only. A tenant admin must have enabled Git integration first. If the workspace and an Azure repo sit in different geographies, the tenant admin must also allow cross-geo export (this restriction does not apply to GitHub).

Many item types are supported, including notebooks, lakehouses, environments, Spark job definitions, pipelines, Dataflow Gen2, eventstreams, eventhouses, KQL databases and warehouses; some are still in preview. Folder structure is mirrored in the repo up to ten levels deep, and empty folders are not copied. Note what is stored: item definitions (code and metadata), not the data in a lakehouse or warehouse.

Connecting

Only a workspace Admin can connect, disconnect or sync a workspace. In workspace settings you pick the provider, the repository, one branch and one folder (a blank folder means the repo root). During the first sync, if one side is empty the content is copied from the other. If both have content you must choose a direction:

  • Commit the workspace to Git: workspace content overwrites what is in the branch.
  • Update the workspace from Git: Git content overwrites the workspace, so you are asked to confirm, because a branch can be restored but a workspace cannot.

The Git connection is per user. Each person working in the workspace signs in with their own account, and with GitHub you should not share one personal access token.

Daily work: commit and update

After connecting, each item shows a Git status and the source control pane shows how many items differ.

  • Commit sends chosen workspace changes to the branch. You can select which items. It is disabled while the branch has updates you have not pulled.
  • Update brings the branch into the workspace. It always takes the whole branch up to the latest commit, with no item selection.
  • Contributors and above do the daily commit and update. They need write permission on all items in the workspace, and on the Git side the right to read and, for commits, contribute (with a branch policy that allows the direct commit).
  • Viewers cannot see Git information at all.

Changing the connected branch, or checking out a new one from Fabric, is an Admin action. A workspace admin can turn on Allow users with at least Contributor role to change Git branch to delegate it to Members and Contributors who have write access to every item.

Branching strategy

A workspace is a shared runtime, so a direct change there affects everyone. The recommended pattern is for each developer to branch out to another workspace: a private workspace tied to a private branch. They work there, commit, and merge back with a pull request. The alternative is client tools such as VS Code for notebooks or Power BI Desktop for reports, with changes pushed through Git.

Conflicts

A conflict means the same item changed in both the workspace and the branch. The status shows Conflict and Commit is disabled. Your options:

  1. Resolve in the UI per item: Accept incoming changes (Git wins, workspace edits lost) or Keep current content (workspace wins, the item then shows as uncommitted).
  2. Revert the workspace or the branch to the last synced state.
  3. Check out a new branch from the last synced state, resolve in Git and merge.
  4. Disconnect and reconnect, choosing a direction. This overwrites everything, not only the conflicting items.

Common mistakes

  • Connecting a workspace that already has content and picking the wrong sync direction.
  • Expecting data to be versioned along with item definitions.
  • Letting several people edit in one connected workspace instead of branching out.
  • Running Update and expecting to choose individual items.

For the exam

  • One workspace connects to one branch and one folder; connect, disconnect and sync are Admin only.
  • Commit lets you choose items; update takes the whole branch.
  • Conflicts arise from changes to the same item on both sides.
  • Branch out to a separate workspace so each developer has isolation.
  • Providers: Azure DevOps and GitHub (cloud versions).

Sources