For version control, use this approach.
Git Integration with Databricks Repos
Core Features:
Databricks Git Folders (Repos) provides native Git integration with visual UI and REST API access
Supports all major providers: GitHub, GitLab, Azure DevOps, Bitbucket (cloud and on-premises)
Authentication via OAuth (recommended), Personal Access Tokens, or service principal credentials
Built-in conflict resolution tools with visual diff comparison and three resolution methods: manual editing, keep current, or take incoming changes
Sparse checkout support for large repositories using cone patterns (clone only specific directories)
Two folder types: user-level Git folders for development (/Workspace/Users/<email>/) and production Git folders (outside user folders with restricted access)