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
- Move existing repos into
import_projects
directory - Run
rake import_projects[owner_email]
Note: owner_email must be an existing user in Gitlab - 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