Accessing your Git repository

The process differs for public and private repositories

Contents

Public repositories

For public Git repositories, you don’t need to add the SSH key provided to your Git account. You simply need to provide the Git URL as either

http://<git provider>/<username>/<repository>.git
or
git://<git provider>/<username>/<repository>.git

Notice

We do not support the use of HTTPS URLs.

This URL is often generated by your Git provider automatically.

Private repositories

For Cloud 66 to access your private repository (with read-only access), you first need to add the SSH provided to your Git account. Follow the instructions on the Get started building your stack page, clicking the How? link.

You can add this SSH key globally to your GitHub account by adding it to your Account settings page, or allow access to a specific repository by adding it as a Deploy key to that repository.

Once this is done, use a Git URL in the following format:

git@<git provider>:<username>/<repository>.git

This URL is often generated by your Git provider automatically.

GitHub example

  1. Adding the SSH key globally
  2. To add the SSH key globally, click the Account settings in the top right hand corner, and then SSH keys in the left menu (you can also choose a name).

  3. Adding the SSH key to a specific repository
  4. To add the SSH key to a specific repository, first access the Settings menu for that repository. Now simply click Deploy keys and paste your key there (you can also choose a name)

Once this is done, use a Git URL in the following format in the Cloud 66 UI:

git@github.com:<username>/<repository>.git

BitBucket example

  1. Adding the SSH key globally
  2. To add the SSH key globally, click Manage account in the top right hand corner, and then SSH keys in the left menu (you can also choose a name).

  3. Adding the SSH key to a specific repository
  4. To add the SSH key to a specific repository, first access the Settings menu for that repository (top right), then click Deployment keys and paste your key there.

Once this is done, use a Git URL in the following format in the Cloud 66 UI:

git@bitbucket.org:<username>/<repository>.git

 

You must be logged in to comment on this article