Bulk Importing Repos via SSH

Updated 1 month ago by Jaala

Overview

Below is a step-by-step guide for adding multiple repos via SSH. If you only need to import a single repo, check out Importing a Repo via SSH.

Bulk Importing Repos via SSH

Step 1: Starting on your GitPrime Home page go to the left navigation bar. At the bottom go to Settings then select Integrations.

Step 2: Select the Add Integration button in the top right hand corner of you Integrations screen. 

Step 3: On the following page select the Generic Repo from the Integration Provider list and click Next.  

Step 4: On the next screen, under the SSH tab, click Bulk Import.

Step 5: Prepare a .csv file with a list of all of the SSH clone URLs of the repos you would like to import. Your file should look something like this:

Step 6: Clicking Bulk Import opens a modal that provides you two ways of generating a SSH key required for importing your .csv file. 

A. Share SSH keys with a repo you already imported. 

B. Generate a new key, that can be shared across all the repos you are about to bulk import.

Step 6A: Share a SSH key with a repo you already imported

If you already have repos imported via SSH, this is the easiest way to connect your new repos for your bulk import. 

Step 1A: Select any repo from the drop down menu.

Step 2A: Click Choose File to locate your .csv file.

Step 3A: Click Test connection.

Step 4A: Your repos were successfully added. 

If your connection was not successful, you will see an error message like the one below. Download the list of failed repos to understand why they were not imported and try again.

Here are a few reason why some of your repos might fail to import:

  • clone URL is incorrect
  • repo has already been imported
  • SSH key was not added at the user level of your account

Step 6B: Generate a new key that can be shared across all the repos you are about to bulk import.

If you do not have any repos already imported via SSH, then you will need to generate an SSH key.

Step 1B: Click Get Keypair.

Step 2B: Click Copy public key to your clipboard.

Step 3B: Add the SSH key to your Git host and click I installed the key.

Please add the SSH key at the user level, as opposed to the repo level.

Step 4B: Click Choose File to locate your .csv file and then click Test connection.

Step 5B: Your repos were successfully added. 

If your connection was not successful, you will see an error message like the one below. Download the list of failed repos to understand why they were not imported and try again.

Here are a few reason why some of your repos might fail to import:

  • repo has already been imported
  • SSH key was not added at the user level of your account

Step 7: If your connection and repos were successfully added, click Next.

Step 8: On the next screen you will be selecting the services you want turned on for this Integration. For SSH imports, repo services is your only option. Ensure the repo service is “On” and click Next.

Step 9: Next, you will want to name your Integration. In this example we named it “Bulk Import via SSH”. Click Create.

Step 10: You have successfully created a new Integration and bulk imported your repos via SSH.

Step 11: To view your imported repos click on the Find your imported repos here link under the Repos tab on your Integration page. To learn more about managing your new Integration settings, see Managing Integrations.

Want someone from our team to walk you through connecting your first repo to GitPrime? Email us at support@gitprime.com or click on the chat link in the bottom right corner of your screen.


How did we do?