Skip to content
A script to migrate all your Gitorious repositories to GitLab
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Gitorious to Mass-Migration Script

Run this PHP script on the command line to migrate all your Gitorious repositories to GitLab.

We used this to move over 100 repositories with no loss of data.

The GitLab API is full-featured and well-documented but takes a while to get the hang of.

The private token for your account is at


From the command line

$ php migrate.php {number of projects to migrate} [specific project]

###Example Usage

Migrates top 10 projects (sorted by row id):

$ php migrate.php 10

Only migrate the one project and all the repositories it contains:

$ php migrate.php 1 this_specific_project

You can’t perform that action at this time.