0

I have created a repository called foo on a server using Gitolite. Now I am unable find out how to completely remove the repository from the server.

It says in the official documentation that you have to

log on to the server and do the dirty deed yourself :-)

But how do I find the repository on the server? Where are the files located?

How can I prevent the files being added automatically back to foo when I try and remove it from gitolite.conf and add it back again?

shyam
  • 1,348
  • 4
  • 19
  • 37

1 Answers1

1

The default location for the repositories created by gitolite is ~/repositories. You can also try to search for your specific repository using:

locate <repository>

When you have located the repository you like to remove you need to remove it from the server which can be done by executing:

 rm -r <repository>

You also need to remove the appropriate lines from your gitolite.conf.

Cyclonecode
  • 29,115
  • 11
  • 72
  • 93
  • Which `~` would it be? I've created a user `git` with only git shell to access. And I certainly don't find any `~/repositories` in the admin user's `~` – shyam Jul 22 '15 at 12:37
  • It's the home directory of the user. How are you accessing the server? Through ssh? What kind of OS is the server running? – Cyclonecode Jul 22 '15 at 12:39
  • Yes. Through ssh. I'm not sure which home directory you are talking about though. And seems like I lost the connection now. I'll update as soon as I get it back. – shyam Jul 22 '15 at 12:42
  • Well you should be able to go to your home folder using by simply typing `cd` and hit enter, then you can list the contents of your folder using `ls -all`. It's hard to know the path to your home directory without knowing what OS you're running. You can try to go to `/home/git` if that's the home folder for the git user. – Cyclonecode Jul 22 '15 at 12:56
  • The reason I asked which home directory you were talking about was because I had a user account called git which was just restricted to the git shell. And by the way, I am working with Ubuntu 14.04 server. I did not have access to the directory in question and so had to delete the files with elevated privileges. Thanks for pointing out where the files are located though, I had no clue to where those where! :) – shyam Jul 23 '15 at 04:48