Skip to content

Bulk repo import Rake task

Created by: mutewinter

I'm using this to import a large amount of existing Git repos into Gitlab. Here's how it works

  1. Move existing repos into import_projects directory
  2. Run rake import_projects[owner_email] Note: owner_email must be an existing user in Gitlab
  3. Repos are cloned into /home/git/repositories and added to Gitlab

Note: The user running this must be able to sudo to the git user without a password, otherwise they will be prompted for their password

Merge request reports

Loading