Skip to main content

Manual Repository

Ascend Projects require a Git repository to store your code. Choose one of the following options to set up your repository and connect it to your Ascend Instance.

Set up a Git repository

Refer to this guide to use an Ascend-managed Repository.

Connect Ascend to your Git repository

Create the SSH key pair

  1. On your local machine, open a terminal and run the following command:
    mkdir -p ~/.ssh && ssh-keygen -t ed25519 -f ~/.ssh/ascend_quickstart_repo_key -q -N ""
  2. This command will generate a new SSH key pair in the ~/.ssh directory.
  3. The public key will be saved in ~/.ssh/ascend_quickstart_repo_key.pub
  4. The private key will be saved in ~/.ssh/ascend_quickstart_repo_key.
    tip

    You can copy the contents of the public key to your clipboard by running:

    cat ~/.ssh/ascend_quickstart_repo_key.pub | pbcopy

Add the public key to your repository

Please follow the instructions here to setup the public ssh key in your Github repository. You will need to allow write access.

Add the private key to Ascend

  1. In the Ascend UI, navigate to the instance settings by clicking on the button in the top right with your instance name and your user icon.
  2. Click on the Repositories settings tab.
  3. Click the Add Repository button.
  4. Set the Repository URI in this format: git@github.com:<github-org>/<github-repo>.git.
  5. Set SSH Private Key to the private key you generated in the previous step.
tip

Make sure to copy the entire private key, including the lines that indicate the beginning and end of the key.

  1. Click Check and Create.

Next steps

Connect your newly created Ascend-managed Repository to a Project and begin building in the Ascend platform.