How to delete the repository on github? -github deletion warehouse tutorial

Time: 2024-03-19Source:Author:

Method 1: Delete the warehouse through the Github website

First, log in to Github's website.

  1. Open the Github repository.
  2. Click the Warehouse Settings button

  3. Scroll the page to findDanger Zone (Danger Zone) and click.

  4. In Danger Zone, clickDelete This Repository(Delete this repository).

  5. Then, enter the name of the repository you want to delete and click OK. Your repository has now been deleted.

Method 2: Delete the warehouse through the local terminal

If you have cloned a repository on Github locally and want to delete it, you can use the following command.

Open the terminal.

Enter the following command: git clone https://github.com/username/repository.git

You need to replace "username" with your Github username and "repository" with the name of the repository you want to delete.

Then go to the cloned warehouse directory.

"repository" here is the name of the repository just cloned.

Now, you can use the following command to delete the repository.

The "origin" here is actually the alias of a remote warehouse on Github. This command will delete the alias of the remote warehouse and the local .git directory.

Then, you need to confirm the repository you want to delete. Enter the following command: rm -rf repository

"repository" here is the name of your local repository.

Now you have successfully deleted the Github repository.

The above is all about the GitHub warehouse deletion tutorial. I hope it will be helpful to you!

Related articles更多>>

Popular recommendations