The proposition on the original docs is slightly complex because it involves bringing the bare repo to the server, check a lot of things and run exotic gitolite commands
My solution is easier and without having to touch anything server side
-
Create the repo in
gitolite-admin/conf/gitolite.conf
and push it. This creates an empty bare repo remotely -
Go to some copy of the existing repo you want to move to gitolite
$ #Configure your repo url as origin $ git remote add origin your.gitserver:repo.name.from.step1 $ #Push the repo $ git push origin master $ #Assign current branch (master) to origin/master $ git branch --set-upstream-to=origin/master
-
Profit!!!
If you liked this, I think you might be interested in some of these related articles: