How to...setup a Gitlab Folder?
Before beginning you will need to follow these steps to create a Personal Access Token (PAT) in GitLab. You can read more about these here.
Databricks Git Folders
Whilst notebooks have their own in-built source control letting you see the version history of all changes, GitLab offers much more functionality when it comes to project collaboration and source control.
Step-by-step
- Link your Git account to your Databricks user workspace.
- Enter your GitLab PAT in Databricks under User Settings > Linked accounts.
- In Git provider username or email, enter your email address and select GitLab.
- Navigate to your homepage in your user workspace in the Databricks workspace you wish to clone the repo in.
- Select "Git folder" from the Create tab
- Switch to the GitLab repo page to clone the repo via HTTPS
- Open the Code dropdown menu
- Copy the git clone HTTPS URL to clipboard
- Click the "Git repository URL" field and paste in the HTTPS URL
- Select GitLab as the Git provider, and configure the folder name you wish to use in your local directory.
- Click "Create Git folder"
- Click the "Git provider email" field and enter your GitLab user email address.
- Click the "Token" field and add your GitLab user's PAT.
Useful Docs:
Common Issues
Limits & FAQs