the f*ck rants about stuff

Bringing existing repo into gitolite

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

  1. Create the repo in gitolite-admin/conf/gitolite.conf and push it. This creates an empty bare repo remotely

  2. 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
    
  3. Profit!!!

comments?

If you liked this, I think you might be interested in some of these related articles:

¡ En Español !