Supported asset types in Git folders
Git folders support version control for specific Databricks asset types. When an asset type is supported in Git folders, you can commit it to a remote Git repository, track changes over time, and collaborate with other users through version control.
The following table describes the supported asset types and their requirements:
Asset type | Details |
|---|---|
File | Serialized data such as libraries, binaries, code, or images. See What are workspace files?. |
Notebook | Notebook file formats supported by Databricks. Git folders identify notebooks by file extension ( |
Folder | A logical grouping of files that appears as a folder in the Databricks workspace and CLI. |
Query (Public Preview) | Databricks SQL queries saved as |
Dashboard (Public Preview) | Databricks AI/BI dashboard drafts saved as |
Alert (Public Preview) | Alerts saved as |
File naming requirements
When you work with assets in Git folders, follow these file naming rules:
- Unique notebook names: A folder can't contain a notebook with the same name as another notebook, file, or folder, even with different extensions. For example, a source-format notebook
test1.pyand a notebook in.ipynbformat can't coexist because both serialize totest1. - No forward slashes: File names can't contain the
/character. For example,i/o.pyisn't a valid file name.
If you violate these rules, Git operations fail with an "Error fetching Git status" message. To resolve the error, rename the conflicting files in your repository.
Unsupported asset types
The following asset types aren't supported in Git folders:
You can move unsupported assets into a Git folder, but you can't commit changes to the remote repository.
Notebook formats
For information about notebook formats for source control, see Notebook formats.