> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clone Git Repo

> This tutorial guides you through migrating the Solar System application repository from GitLab to GitHub.

In this tutorial, you’ll migrate the Solar System application repository from GitLab to GitHub. Once the import is complete, you can start building and automating workflows with GitHub Actions.

## Step 1: Copy the GitLab Repository URL

1. Sign in to your GitLab account and navigate to the Solar System project.
2. Click **Clone** and choose either **HTTPS** or **SSH**.
3. Copy the displayed URL to your clipboard.

<Callout icon="lightbulb" color="#1CB2FE">
  If you select SSH, ensure your local machine has the corresponding SSH key added to your [GitLab SSH Keys](https://docs.gitlab.com/ee/ssh/#add-an-ssh-key-to-your-gitlab-account).
</Callout>

## Step 2: Import the Repository on GitHub

1. In your GitHub account, go to **Import a repository**:\
   [https://github.com/new/import](https://github.com/new/import)
2. Paste the GitLab clone URL into **Old repository’s clone URL**.
3. Assign a **Name** for the new repository (e.g., `solar-system`).
4. Select **Public** or **Private** under **Visibility**.
5. Click **Begin import**.

| Field                      | Description                                        |
| -------------------------- | -------------------------------------------------- |
| Old repository’s clone URL | The HTTPS or SSH clone URL you copied from GitLab  |
| Name                       | Your new GitHub repo name (e.g., `solar-system`)   |
| Visibility                 | Public (open to everyone) or Private (restricted)  |
| Begin import               | Starts the migration and transfers commits & files |

<Frame>
  ![The image shows a GitHub page for importing a project, with fields for entering the old repository's URL and new repository details, including options for public or private visibility.](https://kodekloud.com/kk-media/image/upload/v1752875945/notes-assets/images/GitHub-Actions-Certification-Clone-Git-Repo/github-import-project-repository-details.jpg)
</Frame>

<Callout icon="lightbulb" color="#1CB2FE">
  Large repositories may take a few minutes to finish importing all files and commit history.
</Callout>

## Step 3: Verify the Imported Repository

Once the process completes, you’ll see:

**Import complete — your new repository is ready**

1. Click **View your new project** or navigate directly to your GitHub organization.
2. Confirm that every file, branch, and commit history has been transferred.

<Callout icon="triangle-alert" color="#FF6B6B">
  If you don’t see all branches, check the importer logs or retry the import. For troubleshooting, refer to [GitHub Importer troubleshooting](https://docs.github.com/en/github/importing-your-projects-to-github/troubleshooting-an-import).
</Callout>

***

Now that your Solar System application resides on GitHub, you’re all set to configure GitHub Actions workflows and automate your CI/CD pipeline.

## Links and References

* [GitHub Importing a repository](https://docs.github.com/en/github/importing-your-projects-to-github/importing-a-repository-with-github-importer)
* [GitLab HTTPS and SSH clone URLs](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-a-repository)
* [GitHub Actions Documentation](https://docs.github.com/en/actions)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/github-actions-certification/module/56d72a06-285c-4516-9880-073fb56f579b/lesson/607f4fee-18b4-489d-b0b5-b6ec6b0f7e58" />
</CardGroup>
