We used to use Gerrit Code Review along with git-web before migrating to GitLab. So we had to transfer all our existing repositories to GitLab. This tutorial can also be used for migrating from other git based issue tracking systems. The GitLab documentation says to put all your bare repositories, the ".git" directories, into this location - "/home/git/repositories" and then use the import command. But this doesn't do the job, it only creates blank empty projects under the Admin group with no source files or previous issues. So to solve this, just follow the steps below -
This is for Gitlab versions 6 and less
For Gitlab versions 7 and onwards (That is, if you've installed Gitlab using the debian package)
Thanks for reading this, I hope this slight modification helps you guys. To read more of Musa's hints and tips visit his own blog at http://www.redmoses.me.