如何使用命令行在Git上删除我的存储库? [英] How to delete my repository on Git using command line?

查看:98
本文介绍了如何使用命令行在Git上删除我的存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何完全删除使用init创建的git存储库?

Possible Duplicate:
How to fully delete a git repository created with init?

我在git上有一个测试库,我想使用命令行将其删除.我找到 git rm <file>删除了存储库中的文件,而不是存储库本身.有人可以帮忙吗?

I have a test repository on git and I want to delete it using command line. I found that git rm <file> deleted the files within the repository and not the repository itself. Any one can help here?

推荐答案

对于本地存储库,运行

rm -r .git

您可能无法通过命令行将存储库远程删除到github.

You may not delete a repo remotely to github via command line.

这篇关于如何使用命令行在Git上删除我的存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆