Skip to content

Git Providers

Git Providers — sometimes known as software forges or Source Code Managers (SCMs) — provide a set of tools to host and collaborate on codebases using Git. Daytona allows you to configure Git Providers and use repositories hosted on them to create Workspaces.

Add a Git Provider

You can add a Git Provider to Daytona.

Prerequisites

  • A working installation of Daytona.

Procedure

  1. To start the process, execute the following command:
    Terminal window
    daytona git-providers add
  2. Select the Git Provider you want to configure from the list:
    • GitHub
      Select if you’re hosting repositories on GitHub.com.
    • GitLab
      Select if you’re hosting repositories on GitLab.com.
    • Bitbucket
      Select if you’re hosting repositories on Atlassian’s Bitbucket Cloud offering.
    • Other
      • GitHub Enterprise Server
        Select if you’re hosting repositories on GitHub Enterprise Server.
      • GitLab Self-Managed
        Select if you’re hosting repositories on GitLab’s self-hosted offering. Self-hosted GitLab Community Edition (CE) installations, GitLab Self-Managed, and GitLab Dedicated offerings are supported.
      • Codeberg
        Select if you’re hosting repositories on Codeberg.org.
      • Gitea
        Select if you’re hosting repositories on an installation of Gitea.

Provider-Specific Notes

GitHub

After selecting GitHub as your provider, you will be prompted for a Personal Access Token. For more information on creating a Personal Access Token for Daytona, visit GitHub’s Creating a personal access token (classic) documentation.

GitLab

After selecting GitLab as your provider, you will be prompted for a Personal Access Token. For more information on creating a Personal Access Token for Daytona, visit GitLub’s Create a personal access token documentation.

Bitbucket

After selecting Bitbucket as your provider, you will be prompted for:

  1. Username
    Your Atlassian username.
  2. Personal Access Token (App Password)
    For more information on creating a Personal Access Token, visit Bitbucket’s Create an App password documentation.

GitHub Enterprise Server

After selecting GitHub Enterprise Server as your provider, you will be prompted for:

  1. Self-managed API URL
    This is the base URL for your GitHub Enterprise Server instance’s API. This is typically in the format https://<GITHUB_HOST>.
  2. Personal Access Token
    For more information on creating a Personal Access Token for Daytona, visit GitHub’s Creating a personal access token (classic) documentation.

GitLab Self-Managed

After selecting GitLab Self-Managed as your provider, you will be prompted for:

  1. Self-managed API URL
    This is the base URL for the self-hosted GitLab API. This is typically in the format https://<GITLAB_INSTANCE_BASE>/api/v4.
  2. Personal Access Token
    For more information on creating a Personal Access Token for Daytona, visit GitLab’s Create a personal access token documentation.

Codeberg

After selecting Codeberg as your provider, you will be prompted for a Personal Access Token. For more information on creating a Personal Access Token for Daytona, visit Codeberg’s Generating an Access Token documentation.

Gitea

After selecting Gitea as your provider, you will be prompted for:

  1. Self-managed API URL
    This is the base URL for the Gitea installation’s API.
  2. Personal Access Token
    For more information on creating a Personal Access Token for Daytona, visit Gitea’s Generating and listing API tokens documentation.

List Connected Git Providers

You can list the currently connected Git Providers.

Prerequisites

  • A working installation of Daytona.

Procedure

  1. Execute the following command to list currently connected Git Providers:
    Terminal window
    daytona git-providers list

Remove a Git Provider

You can remove an existing provider interactively.

Prerequisites

  • A working installation of Daytona.
  • A Git Provider to remove.

Procedure

  1. Execute the following command:
    Terminal window
    daytona git-providers delete
  2. Select your desired provider from the list to remove it.