Use this post together with the Looker Document Setting Up Version Control to configure your version control with GitLab.
Refer to the instructions in the Setting Up Version Control document. You can create a new repository in GitLab by clicking the + icon in the upper right corner of any page and selecting “New Project,” then follow these instructions: https://docs.gitlab.com/ee/gitlab-basics/create-project.html
Get the SSH URL for your GitLab repo. The format should look like this:
You can see the SSH URL by clicking on the project’s Details tab.
Refer to Step 3 in the Setting Up Version Control document
Looker will detect your Git provider and display a deploy key for your repo. (If Looker does not successfully detect your Git provider, it will ask you to choose from a dropdown.) Select the entire Deploy Key and copy it to your clipboard, then click the link under “Add the SSH Key” to visit the SSH Keys section of the GitLab settings panel.
Add a title for the deploy key. The name isn’t important, but you might want to include “Looker” and your project title to keep track of it in the future. Paste the deploy key that you copied from Looker.
Check Write access allowed
Click “Add Key”
Continue with Step 11 in the Setting Up Version Control document