简体   繁体   English

从字面上删除由Gitolite在服务器上创建的git存储库

[英]Literally removing git repository created by Gitolite on the server

I have created a repository called foo on a server using Gitolite. 我已经在使用Gitolite的服务器上创建了一个名为foo的存储库。 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? 尝试从gitolite.conf删除文件并再次将其重新添加时,如何防止文件自动添加回foo

The default location for the repositories created by gitolite is ~/repositories . 由gitolite创建的存储库的默认位置是~/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 . 您还需要从gitolite.conf删除相应的行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM