I have a working gitolite server. However, I want to move it to an identical configuration, but on a bigger machine. Even though I have gitolite working, I am not sure about t
The instructions have changed for Gitolite V3
(Copied from http://gitolite.com/gitolite/rare.html):
Install gitolite on the new server, using the same key for the admin as for the old server.
Copy the .gitolite.rc
file from the old server, overwriting this one.
Disable the old server so people won't push to it. There are several ways to do this, but the simplest is to insert exit 1;
at the top of ~/.gitolite.rc
on the old server:
Copy all the repos over from the old server, including gitolite-admin
. Make sure the files end up with the right ownership and permissions; if not, chown/chmod them.
Run gitolite setup
.
On a clone of the old gitolite-admin, add a new remote (or change an existing one) to point to the new server. Then git push -f
to this remote.