Import an existing git project into GitLab?

git, gitlab

Solution

Moving a project from GitHub to GitLab including issues, pull requests Wiki, Milestones, Labels, Release notes and comments

There is a thorough instruction on GitLab Docs:

https://docs.gitlab.com/ee/user/project/import/github.html

tl;dr

Ensure that any GitHub users who you want to map to GitLab users have either:

- A GitLab account that has logged in using the GitHub icon - or -

- A GitLab account with an email address that matches the public email address of the GitHub user

From the top navigation bar, click + and select New project.

- Select the Import project tab and then select GitHub.

- Select the first button to List your GitHub repositories. You are redirected to a page on github.com to authorize the GitLab application.

- Click Authorize gitlabhq. You are redirected back to GitLab's Import page and all of your GitHub repositories are listed.

- Continue on to selecting which repositories to import.

But Please read the GitLab Docs page for details and hooks!

(it's not much)

Problem

I have an account of a Gitlab installation where I created the repository "ffki-startseite" Now I want to clone the repository `git://freifunk.in-kiel.de/ffki-startseite.git` into that repository with all commits and branches, so I can start working on it in my own scope. How can I import it?

Original source

Related problems