I've installed gitosis on my dramhost machine but now I want to uninstall it because it's causing more problems than solutions.
The thing is that I can't find how to uninstall it. I deleted the ~/repositories directories but of course all the bins are still included. Also I'm more worried about what it did to ssh configurations.
Clone the gitosis git repository again and then install it again using the
--record
option:Which will produce a text file containing all the installed files. Then just delete them.
You may want to remove the
git
user:as well as the
git
group:The ssh configuration consists in entries in the
.ssh/authorized_keys
which is going to be deleted along with thegit
user home directory.To remove the actual gitosis files you'll want to delete them from the same directory as git. Normally it would be in /usr/local/bin but if you are using a package installer like homebrew or macports it might be somewhere else. To find out where git is installed type this in a terminal window:
That will tell you where git is installed and that's where gitosis should be.
Now cd to that directory and you should be able list and remove the files like so:
That should be all you need to do. I've also had lots of problems with gitosis. Mainly that it insists on creating a repositories folder when I don't want one. I'm using a simple ruby script to move my files around now after upload and that's working a lot better.
Thanks. I did not have a git user, but deleting the .ssh/authorized_keys file did the trick.