Skip to content

ManualRepositories

Connect with SSH or HTTPS

Connect a Git remote with your organisation’s SSH key or with a token from your Git host.

As an owner or admin, open New repository on your organisation’s dashboard. Choose SSH key if your Git host lets you register Berrit’s public key with write access. Choose Token if your team uses an HTTPS account or token for automation. Paste the clone URL for the protocol you chose. Your own clone can keep using whichever protocol you prefer. If you want GitHub pull requests and Actions integration, use the GitHub App.

  1. Select SSH key and enter the repository’s SSH clone URL in Remote URL.
  2. Copy the organisation’s public key from the dialog to your Git host and give it read and write access to this repository. Berrit uses the same key across the organisation’s SSH repositories. On GitHub, a deploy key can belong to only one repository. For several repositories there, use the GitHub App or register the key on a machine account that can write to them.
  3. For Default branch, enter the branch you want changes to land on. Confirm the Slug and select Create.
  1. Select Token and enter the HTTPS clone URL in Remote URL.
  2. Fill in Username and Token with the credentials your Git host issued. The token must have read and write access to this repository. Put it in the token field and leave credentials out of the URL. When you later push a change to Berrit, Git will ask for your personal Berrit API key instead.
  3. Confirm Default branch and Slug, then select Create.

Why does Berrit need write access? It fetches code from the remote, but it also writes refs under refs/berrit/* and pushes to the target branch when a change lands. Your branch protection rules have to allow those writes too.

Once the repository opens in Berrit, you can test the connection under Settings → Access → Check access. If your token expires later, choose Replace in the token field, save the new token and check access again.