Delete existing warehouses or files in Github

1. Delete the github repository

We can directly delete some useless warehouses on github. First, enter the warehouse and find the Settings button on the page:

After selecting to enter, pull the page to the bottom, find Danger Zone, and select delete to delete.

2. Delete files in Github

Files in the warehouse cannot be deleted directly on github. At this time, we can use the tool git to delete them.

1. First clone the warehouse to the local

git clone [email protected]:Keyird/DeepLearning-TensorFlow2.git

2. Open Git Bash and view the files in the current directory:

ls

3. Enter the local warehouse

 cd DeepLearning-TensorFlow2

4. Delete the specified file (delete the ResNet file named in the warehouse)

 git rm -r --cached ResNet 

5. Submit the operation instructions

git commit -m '删除了ResNet'

6. Update this change to the github project

git push

Guess you like

Origin blog.csdn.net/m0_59281987/article/details/129911232