Search code examples
linuxgitsshgitosisgitolite

How do I completely remove Gitosis and then run Gitolite?


I removed the gitosis-admin folder, but naturally something is still screwed up when I run gitolite. I ran apt-get install gitolite and then gl-setup on the new .pub key I created and used to set up the passwordless access. The set up seemed to run fine, but now I'm prompted for a password (of course I am!) when running the git clone gitolite@server:pathgoeshere command.

I'm so tired. I have wrestled with gitosis for 2 weeks. PLEASE don't tell me installing Gitolite will be as painful. Should I remove all the stuff Gitosis polluted my server with to ensure Gitolite is working correctly? Where would it be. Consultation of the interwebs revealed multiple possible hiding places for Gitosis things...like keys. I removed the Gitosis folder in home.... so far that's all.


Solution

  • This piece of advice is probably helpful to you here.

    And in case you have multiple keypairs, make sure that your .ssh/config is set up to use the proper key for this connection.

    Having Gitosis pre-installed shouldn't affect how Gitolite works, but of course there might be some conflict. I have never installed Gitosis, just Gitolite.

    (Which, by the way, worked perfectly fine with only user permissions on my remote shell!)