how to git integration multiple gitlab repo

CE
New Contributor II

I have 3 GitLab repos in my Databricks workspace.

CE_1-1727339329608.png

I have also generated personal tokens for these 3 repos. However, it seems that Databricks can only use one repo token at a time for Git integration.
For example: I am currently using the token for repo A in Git integration. But whenever I want to switch to repo B to do a push/pull, an error occurs: "Invalid Git provider credentials," which prevents me from performing any push/pull operations on repo B.

CE_3-1727339430317.png

CE_4-1727339467488.png

 

Is there any way to allow Databricks to use multiple repo tokens simultaneously?

nicole_lu_PM
Databricks Employee
Databricks Employee

Unfortunately this is expected behavior. We only support 1 Git credential at a time per user in the workspace. We are adding a sample notebook in this section to help you swap Git credentials more easily. 

https://docs.databricks.com/en/repos/repos-setup.html#add-or-edit-git-credentials-in-databricks

 

CE
New Contributor II

Yes, currently I swap Git credentials as you mentioned.

CE_0-1727743466807.png

However, I still find it inconvenient. I hope in the future there will be a feature to use multiple repos. Thank you.