I would like to know the preferable way to move all my git repositories currently hosted on github to a new git server gitolite-based.
Just for knowing, the reason why I’m doing this switch is the adoption of Redmine to support our project management process.
Add the new repo in gitolite-admin/conf/gitolite.conf
Add, commit and push the changes into gitolite-admin
Clone your github repo and checkout all the branches present
Remove the github remote, and add your gitolite remote:
Push all the refs onto the repo managed by gitolite:
I verified the steps in a test repository of mine, and all the refs seem to have propagated into the new repo.
UPDATE: Like Seth pointed out, any other refs other than branches are not propagated to the new repo. I too feel Mirror would be a better option.