Repository Access and Clone

Applies to: FlexLab

Overview

Every FlexLab project includes a Git repository hosted on GitLab. The Code page in FlexSite shows where developers clone the project, open the GitLab web UI, and confirm which branches exist.

Key concepts

  • Clone — download a copy of the repository to your laptop so you can edit files locally.
  • HTTPS vs SSH clone URL — two ways to authenticate downloads; SSH pairs with keys on ProfileTokens.
  • .gitlab-ci.yml — configuration file in the repo that defines pipeline stages (build, test, deploy).

Steps — view repository

  1. Open Code in the project sidebar.
  2. Copy the HTTPS or SSH clone URL shown on the page.
  3. Click Open in GitLab (if available) to browse files, merge requests, and pipeline history in the browser.

Steps — clone to your computer

  1. Install Git and the FlexSite CLI on your machine.
  2. In a terminal, run git clone .
  3. cd into the new folder.
  4. Run flexsite auth login and paste a token from ProfileTokens.
  5. Follow any Code page instructions to link the folder (e.g. flexsite link).

What’s inside a typical repo

  • composer.json — lists Drupal core and modules.
  • web/ — Drupal docroot (public files and index).
  • .gitlab-ci.yml — pipeline definition FlexSite expects.
  • docker/ or local dev files — optional tooling for Lando/DDEV teams.

Pushing commits to tracked branches triggers deployments to linked environments.