简体   繁体   中英

How to Remove Github Repositories

March 12, 2021

There is a repository on git that I'm trying to erase. I set it up for initial practice, but now, I don't want to use it because the name is dumb (created it in a hurry) I need to get rid if it, because the PC keeps trying to reference it when I use Git. I just need to use my newer (better named) repository. I'm not familiar with the git cli in the least. Any help would be appreciated.

Git creates a hidden .git folder when you initialize or clone a repository. Delete that folder to get rid of the repo.

From the command line, you can delete it with rd /S/Q.git (Windows) or rm -rf.git (Mac/Linux).

If you're wanting to remove a repository from GitHub, you can do that via Settings -> Options -> Delete this repository

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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