Book Image

GitLab Cookbook

By : Jeroen van Baarsen
Book Image

GitLab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Importing an existing repository


It's quite simple to import your repositories from somewhere else. All you need to do is create a new project and select the repository to be imported. In this recipe, we will take a look at how this is done. For this recipe, we will import the repository hosted on GitHub at https://github.com/gitlabhq/gitlab-shell.

How to do it…

In the following steps, we will import a repository:

  1. Log in to your GitLab instance.

  2. Click on New project.

  3. Enter the project name as GitLab Shell.

  4. Click on Import existing repository?.

  5. Enter the URL for the repository we want to import:

    https://github.com/gitlabhq/gitlab-shell

  6. Now, click on Create Project.

  7. Importing the existing repository might take a while depending on the size of the repository.

  8. After the importing is done, you will be redirected to the project page.

  9. Let's check whether it's actually an imported repository. Click on the Network menu item. If everything is fine, you should see the graph in the following screenshot:

How it...