Link a local GitHub repository

After you Create a GitHub repository and Set up SSH Key authentication for GitHub, the next step is to link your local OL Connect Automate project to the remote GitHub repository.

Copy the SSH URL from GitHub

  1. In GitHub, open your newly created repository.

  2. In the Quick setup area (visible for new/empty repositories), select the SSH option.

  3. Copy the SSH URL, which looks similar to:

    git@github.com:<your-github-account>/my-first-project.git

GitHub window for setting up communication with the new repository.

Add the Remote Repository in OL Connect Automate

  1. In OL Connect Automate, navigate to Menu → Projects → Project Settings → Settings.

  2. In the Git remotes section, click add remote.

  3. Enter the Remote Name for the remote repository, for example, MyFirstProjectRemote.

  4. Paste the SSH URL into the URL field.

  5. Click Add remote.

Your local project is now linked to the remote GitHub repository.

Push files to the remote repository

  1. Open the History tab of the right sidebar.

  2. Open the Commit History panel.

  3. Click the Manage Remote Repository icon

Commit History panel, with the manage history icon identified. The icon is a small square with two arrows; one pointing up and one pointing down.

  1. Click the Remote button.

  2. Enter the name of the branch you want to push to.

    • For GitHub repositories, the default branch is typically main.

    • If it does not yet exist in the remote repository, entering main will create it.

  3. Select the main branch from the list.

  4. Click push to upload your project files to GitHub.

Commit History panel, with the manage remote branch selected. The main branch (only one showing) is highlighted.

  1. Once the push completes, you can confirm the files are in the repository:

    1. Return to your GitHub repository in your browser.

    2. Refresh the page to see your project files appear in the repository.

Browser window for the GitHub repository, showing a list of file from an OL Connect Automate project.

Note: If you encounter the error:

Host key verification failed. The repository host key could not be verified. Please update your known_hosts file and try again.

when selecting the remote branch in the History panel, refer to GitHub’s SSH key fingerprints documentation for instructions on how to update your known_hosts file.