Skip to main content

GitLab

First you must provide an access token.

GitLab offers different types of access tokens depending on your subscription tier.

Create a Project Access Token

  1. Go to your GitLab project

  2. Navigate to Settings > Access Tokens

  3. Click Add new token button

  4. Choose a name, for example: twigg-mirror-<YOUR-REPO-NAME>

  5. Select an expiration date (feel free to choose a long duration).

  6. Select a role for the token: Developer (or equivalent).

  7. Select the following scopes:

    • read_repository
    • write_repository
  8. Click Create project access token button

  9. Copy the generated token.


Set GitLab mirror in Twigg

  1. Go to home and open your repository.

  2. Click the repository settings icon.
    click_repo_setting_icon

  3. Scroll to Git Mirror section and click on the switch button to enable it.

  4. Construct your mirror URL

https://oauth2:<TOKEN>@<HOST>/<GROUP>/<PROJECT>.git
  1. Click Save URL.

Your setup is complete. From now on, any commits submitted in Twigg will be automatically pushed to the twigg branch of the mirrored repository GitLab.