- Initial credit to https://gist.github.com/maxivak/513191447d15c4d30953006d99928658
Gitlab exports a tar.gz file which contains a file called project.bundle. We can convert this file into a normal git repo using the following steps:
$ tar xvfz GitLabExport.gz
x ./
x ./project.bundle
x ./project.json
x ./VERSION
$ ls -l project.bundle
-rw-r--r--@ 1 pgregg pgregg 69055 21 Dec 12:06 project.bundle
$ mkdir repo
$ git clone --mirror project.bundle repo/.git
$ cd repo
$ git init
$ git checkout
$ git status
On branch master
nothing to commit, working tree clean
$ ls
README.md
Thanks, this is a more beautiful one than the original.